-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Missing baseman from requirements.txt. #10
Comments
But that also presents a problem as you must have the GEOS library installed on the system.
|
Just to be even more annoying, basemap package doesn't define an install_requires for numpy. Because it is an explicit URL, pip decides to go and install it before other listed modules in the requirements.txt file for some reason. The end result is that it fails to install because numpy isn't yet installed.
This makes it impossible to add it to the requirements.txt file as pip will fail. |
Only apparent solution is to install baseman direct from the GitHub repository using latest. There has been no release of basemap since the last one on SourceForge which fixes the missing install_requires in the setup.py file. Thus need to use: in the requirements.txt file if want it to be possible to use pip with a requirements.txt file and have it install all modules in one go. |
I'll recommend using conda, in which case these issues don't come up 😄 Added to requirements... thanks! |
Unfortunate. Means I need to provide a fork of your repo just to change the requirements.txt file so can provide a means for people to easily spin up all your notebooks so they can play with them as the system using doesn't use Anaconda, but normal Python distribution. Wish the basemap people could sort out getting updated package on PyPi. Apparently the limits on file size could be lifted for their specific project if necessary as noted in matplotlib/basemap#198. |
Investigating whether can use platform.python_implementation environment marker in requirements.txt so can have it work differently for Anaconda Python vs normal Python. |
No environment marker which is distinct for Anaconda Python unfortunately. :-( |
If If you think it's important to directly support pip, though, we could add a |
The reason is because |
Ah, got it. Fortunately, until that is fixed, conda still works perfectly well 😄 |
@GrahamDumpleton - What about installing it directly from github? This works for master, but tags/releases can be done, too. |
Can that be listed in a requirements file? |
Probably, at least we use it in the |
@bsipocz Yes, installing direct from master of GitHub works and having the URL for that listed explicitly in the requirements.txt file was solution I used as mentioned above. I felt that Jake might perhaps prefer not want to use explicit GitHub URL, especially to master since code could change and suddenly break, so I didn't push it. If we can get a tagged released of basemap in GitHub so a specific version can be installed that would be better. Jake might still want to have a I don't know too much about conda, but not sure if other option is to have a |
Required by 04.13-Geographic-Data-With-Basemap.
This was is annoying because it can't be installed from PyPi using pip. You instead need to list the URL of where it is located on SourceForge.
The text was updated successfully, but these errors were encountered: