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
Python: provide post-install instructions #2205
Comments
Good point. However, I am not sure we want to rely on the end user running that script upon unzipping or installing OpenCOR. People are bound to forget about it (especially when upgrading from one version/snapshot to another). So, couldn't we have that script run automatically when starting OpenCOR. Surely, it ought to be possible, somehow? (In the same way that we register the OpenCOR URI when starting OpenCOR.) This would also allow for people to move/rename the OpenCOR directory, if they need/want, without having to worry about anything. (And this means that we wouldn't need to run that script as part of the Windows installer.) I will look into it when I have a minute. |
Yes, good point to automatically run the script, and we have discussed doing so before now... One way to do this would be to call Shall I do so and generate a pull request?? |
Yes, that would be great. Thanks! |
…o longer during installation or when running Jupyter or Python (opencor#2205).
…o longer during installation or when running the Python shell (opencor#2205).
Closing as per PR agarny#10. |
Having merged in PR agarny#10 and rebuilt our Python package, I can confirm that it's all working fine (i.e. our Python scripts' shebang gets properly updated). I will just do a couple of things:
|
Isn't Or since it's just a convenience wrapper for |
Hmm, I guess we might keep it, but rename it to |
It is essential that the
setpythonpath
script is run after unarchiving an OpenCOR+Python release, as otherwise the scripts in Python's./bin
directory (./Scripts
under Windows) don't contain the correct path to OpenCOR's Python. One symptom of things being wrong is!pip list
failing when run in the GUI Python console.A note to this effect should be attached to releases on Github.
Note: the Windows' installer does the right thing.
The text was updated successfully, but these errors were encountered: