-
Notifications
You must be signed in to change notification settings - Fork 2
Installation cleanup #8
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
Comments
Hi, Thanks for all the detail! PyPI installation vs. cloning the repo
Output data management
Dependencies
|
@xiaziyna looking a lot better!
|
Thanks for taking the time to be thorough in your explanations and providing expertise! 3.4. Your explanation makes a lot of sense and I have updated the setup to include the dependencies. I have also replaced all the random Python versions with Python 3. |
Looks good! With the updated dependencies, there would just need to be an update to that section in the readme:
Could I ask you do fix these |
And about the output details in comment/question 2.: This looks like a great solution! If I run into any issues while testing this, I can easily open a new issue so I will consider this done here! |
Hi! I have updated the README to list the updated dependencies. |
Thanks a lot for addressing all of my requests! This issue can be closed now. |
This is part of openjournals/joss-reviews#7917.
Going through the installation instructions, the first thing I asked myself when seeing the optional LFS pull after a git clone was: What can I run with this package if I don't do that? Digging into this, I found a couple of issues that would need to be addressed to make the installation process more robust.
Some comments:
setup.py
assumes Python versions that have reached or are about to reache end-of-life (EOL): https://devguide.python.org/versions/. This leads to some dependency confusion when running in newer Python versions.astropy
andhcipy
are actually necessary.Requested revisions:
PyPI installation vs. cloning the repo
pip install pystarshade
option as that's sufficient for this case.pip install -e .
Output data management
Dependencies
astropy
andhcipy
normal dependencies. It takes time to figure out currently when I would want to install them and when not, and there is no disadvantage to adding them to the required dependencies (I think). In this way you eliminate a minor headache.pkg_resources
is not part of the Python standard library anymore since Python 3.12. This means that you need to listsetuptools
(which the module is a part of) as an explicit dependencies for Python versions >= 3.12. The simplest way is to bump your Python requirement to >= 3.12 and addsetuptools
to your dependency list.hcipy
installssetuptools
as part of its installation. However, all direct dependencies of your own package should always be listed.pkg_resources
is deprecated and removed in Python 3.12 mu-editor/mu#2485The text was updated successfully, but these errors were encountered: