Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Installation of Chapel dependency #62

Open
3 tasks
lydia-duncan opened this issue Nov 30, 2016 · 4 comments
Open
3 tasks

Improve Installation of Chapel dependency #62

lydia-duncan opened this issue Nov 30, 2016 · 4 comments

Comments

@lydia-duncan
Copy link
Member

lydia-duncan commented Nov 30, 2016

Seen in #61, there are a couple of problems with the current installation strategy.

  • our installation of Chapel (a core dependency of this project), is an additional
    step outside of the python setup.py install and pip install pyChapel steps followed
    to install normal Python modules. Is there a way to modify setup.py so that it performs
    this installation automatically, without the user needing to perform this action themselves?
  • the recommended path (and that followed by our test_python.bash script) to
    install Chapel is not robust to when multiple configurations of Chapel are available to the
    user. It will try to grab all files in the lib directory, instead of just the one for the current
    configuration, leading to potentially overwriting the settings desired with other Chapel
    configurations (including those that pyChapel does not currently support). Improving
    the handling of this is likely related to Expand Chapel settings that work with this feature #7

Other, related issues:

  • Investigate and improve tie to Chapel dependency. Can we change the build of pyChapel
    so that it can find the Chapel library based on an environment variable setting (preferably
    one that Chapel already relies upon, such as CHPL_HOME) instead of forcing us to create
    a copy or a link to the library file in a specific location?
@russel
Copy link

russel commented Dec 1, 2016

I am assuming this is now the place to discuss the issue of the copying of the chapel libraries?

(Sorry I have been absent, I shall restart efforts on the Python 3 stuff shortly.)

I guess the first question I had ages ago was "Why do the files have to be copied? Why is it not possible to use environment variables to achieve the access to the built libraries?" I believe I then used symbolic links instead of copying. Building and installing PyChapel, requires (or required) a rebuild of Chapel so an update to the "copied" files anyway.

@lydia-duncan
Copy link
Member Author

I don't know the answer, but I agree with you that we shouldn't have to copy the files. I would imagine it was more chosen as one way to solve the problem of "Where is my Chapel install?" rather than because it was viewed as the only way to find the Chapel install. Updating the issue description to include that as an action item

@russel
Copy link

russel commented Dec 1, 2016

Or, maybe,... a "deployed" PyChapel with the copied files makes a directory that can be tarred or zipped up and it makes a complete distribution. I had previously been thinking only in terms of development. Putting on a packager/DevOps mindset it could be this is the first stage of making a release of a self-contained thing with only libc as a dependency.

@buddha314
Copy link

I just created a related ticket, not quite a duplicate: #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants