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
Datascience doesn't declare its dependencies #335
Comments
Thanks for the suggestion. A separate comment suggests we should not list all dependencies in requirements.txt: see #301 (comment). So, I think this is a won't-fix. |
I think the comment you linked to is out of date, as of pip release 10 (2018-04-14); pip no longer does recursive upgrades. I supposed that the |
OK -- I'm not up to date on |
If someone with experience can recommend the best way to declare
dependencies, it does seem like a good time to declare them.
John
…On Sun, Jun 9, 2019 at 8:21 PM davidwagner ***@***.***> wrote:
OK -- I'm not up to date on pip, so I'm pretty clueless how pip works and
not the right person to make this decision. @papajohn
<https://github.com/papajohn>, can you comment on this? Can/should we add
these dependencies to requirements.txt now, given the changes to pip
mentioned above?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#335?email_source=notifications&email_token=AACOFEL2XFMUARQUJOBAKEDPZXCDBA5CNFSM4FYMCS4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXI2OKI#issuecomment-500279081>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACOFEJNWPCNUK2C6GM7HH3PZXCDBANCNFSM4FYMCS4A>
.
|
I don't have extensive experience with dependencies but can look into this if no one else has experience. Perhaps @SamLau95 might? |
I do have a lot of experience, I'm happy to advise. You have the problem you've pointed out, that for pip versions older than 10, and therefore, some installations older than April 2018, pip will upgrade all packages with You used to have the problem that Matplotlib, Pandas etc were difficult to install; I think wheels have taken care of this problem for well over 99% of installations. This has been so for Numpy, Scipy, Matplotlib, Pandas for several years now. Worst case, your user has an old pip, runs Second worst case, your user has an old pip, is using an old Anaconda (with an old pip), and does On balance, if it were me, I'd declare all dependencies in I would declare everything in @stefanv - any thoughts? |
I agree with everything @matthew-brett has said above - thank you for the in-depth thoughts! Adding the WIP label to this issue. Would definitely like to hear @papajohn's thoughts before I make any movement on this. |
Matthew's proposed change sounds great — declare all dependencies in both
setup.py and requirements.txt.
…On Thu, Jun 20, 2019 at 10:07 AM Adnan Hemani ***@***.***> wrote:
I agree with everything @matthew-brett <https://github.com/matthew-brett>
has said above - thank you for the in-depth thoughts!
Adding the WIP label to this issue. Would definitely like to hear
@papajohn <https://github.com/papajohn>'s thoughts before I make any
movement on this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#335?email_source=notifications&email_token=AACOFENYXHNQQNHHONWGW43P3M3F5A5CNFSM4FYMCS4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYEUHGA#issuecomment-503923608>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACOFEIZZCFQPKZA3JMQLJLP3M3F5ANCNFSM4FYMCS4A>
.
|
@matthew-brett Nothing to add. We always specify requirements.txt - I cannot think of any reason not to. To avoid duplication, we also often read those files in setup.py for the installation dependencies, so we don't have to specify versions twice. Conda seems to play better with pip now, but I haven't checked the very latest status. I wonder if @hmaarrfk knows? |
For conda, Minimum version requirements don't seem to change much version to version. Conda package maintainers try to manually verify that pinnings are correct. Conda-forge is quite adament about people updating. Anaconda will try to support old stuff, to a point. Again, they will likely really want users to update conda and pip before supporting them. |
I think that Datascience needs the following packages to import correctly:
These aren't declared in
setup.py
or similar, I think. At least, they do not get installed withpip install datascience
. Worth adding?The text was updated successfully, but these errors were encountered: