-
Notifications
You must be signed in to change notification settings - Fork 160
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
Use setuptools in setup.py #231
Conversation
hey @mbjoseph some of these things impacts the RTD build. So one thing to check is whether the branch builds in RTD before we review this. If it builds that is great!!! :) i just remember fighting with it. |
Good call @lwasser! |
Codecov Report
@@ Coverage Diff @@
## master #231 +/- ##
==========================================
+ Coverage 91.24% 92.56% +1.31%
==========================================
Files 14 15 +1
Lines 925 1116 +191
==========================================
+ Hits 844 1033 +189
- Misses 81 83 +2
Continue to review full report at Codecov.
|
Ok @lwasser I've checked RTD on this branch and the docs seem to be building correctly - have a look: https://earthpy.readthedocs.io/en/use-distutils/ (note this is a protected build so I'm not sure it will be visible to others). I would love if both @lwasser and @joemcglinchy could test this branch locally on Mac and Windows (respectively), and confirm that our installation instructions lead to a successful install, passing tests, etc. for a fresh |
dear @mbjoseph this worked to install earthpy with pip version 19.0.2 !! magic... @joemcglinchy can you try this on windows?? i suspect this will be a great fix. |
hey @mbjoseph just a note that I just installed and got this error (i'm NOT using the earthpy-dev env right now btw). just did a test on a fresh windows VM conda envt. i'll try with the envt next.
curious if @joemcglinchy gets a similar issue or not since I rarely use windows. UPDATE: it installed perfectly once i had the Ea-envt ACTIVATED. probably because gdal is there and happily setup. but it's potentially problematic if it doesn't install without that envt. i wonder if we need to add more dependencies to earthpy like gdal?? thoughts? let's see what joe comes back with. |
Thanks @lwasser - the intention here is to still use the conda environment. Glad it worked with the earthpy-dev conda environment! |
ahhh i need to try it with the dev envt next @mbjoseph let me do that. i just used the full envt ! not sure why i did that - i think just being lazy as it was already installed... more in a bit |
i tried installing from environment.yml with no conda environment activated. That installed fine, but upon activating and running
|
@joemcglinchy are you sure you are on this branch? The error you got is a result of code that this PR removes. |
nope let me update and try again |
if you read my previous comment, disregard (i deleted it, forgot to activate my dev env!).
|
Ok @lwasser @joemcglinchy thank you both for testing this locally. I have also tested this on Windows via AppVeyor and on Travis and it all seems to be working correctly. This appears to solve #206 for us (across platforms too, which is great). I'll let @lwasser approve and merge when ready. |
@mbjoseph as a followup i just reinstalled on windows and it works great using the earthpy-dev envt !! so i second @joemcglinchy comment above ... this might be good to go now?? yea? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is good to go @mbjoseph but please let me know what you think before i merge. i have tested it and it seems to work well.
Cool - thanks for checking this again @lwasser! This should be good to merge now. |
woo hoo!! merging. thank you @mbjoseph !! |
This PR removes the installation dependency on numpy's distutils module, and instead uses setuptools as recommended by the PSF: https://packaging.python.org/guides/tool-recommendations/
The use of numpy's distutils module seems to be unnecessary for earthpy, because it does not use the specialized features in
numpy.distutils
(e.g., the ability to handle Fortan source files as described here: https://docs.scipy.org/doc/numpy-1.14.0/f2py/distutils.html)Locally, this solved #206 for me. I'm opening this as a draft to see how the builds shake out on Travis. I also would like to have other folks (@lwasser and @joemcglinchy if you have time) test this on Mac and Windows if possible, to make sure that the installation still proceeds as expected given the changes to
setup.py
.