-
Notifications
You must be signed in to change notification settings - Fork 99
FIX: Fix setup.py #213
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
FIX: Fix setup.py #213
Conversation
|
Well, originally this was somewhat on purpose because we assumed most people probably didn't want pip trying to install mayavi. It used to be a operation with a low probability of success. Maybe with more modern python packaging infrastructure it is likely to work better? |
|
Oh I see, the issue is that you are trying to pip install mayavi and pysurfer at the same time. The middle ground is to limit the setup modes in which the dependency check is run: statsmodels/statsmodels@f184b8b |
It seems to work decently with Anaconda at least. I definitely don't want to add I think if we eliminate doing dependency checks for Either solution is fine by me, though. |
The way that statsmodels code works is that if you don't have mayavi installed then |
|
It looks like we already do this check: https://github.com/nipy/PySurfer/blob/master/setup.py#L59 Does this mean it's not working? Or is the important change elsewhere? |
|
It's certainly possible that my memory is failing on aspects of this issue. There was a lot of back and forth about it in seaborn. But honestly, pip is pretty good these days ... I just made a clean conda environment with nothing but python and pip and pip installed numpy/scipy/matplotlib/pandas/seaborn with no issues whatsoever. The default |
Forgot to say: on OSX! |
|
Wow that's pretty good. I was wondering when they'd add something like So adding |
|
With an up-to-date pip I don't think you should need to compile numpy or scipy, pip is pull down binary wheels for me. I'm not sure what the situation is on windows though. |
|
Okay with you just to add |
|
I'm mildly unsatisfied with the piecemeal approach to dependency specification but I see the argument that it assumes the existence of a full Anaconda distribution. This means mayavi should also come out of the |
Good call, removed (and comment added that it and nibabel are in |
When trying to set up an Anaconda environment using
pipto simultaneously installmayaviandPySurfer, I get these errors:This is because we don't tell
pipabout themayavidependency, so it tries to installPySurferfirst. We should either remove our custom dependency check, or addmayavito the deps list -- this PR does the latter.