Skip to content
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

BF: increased SCIPY version definition flag to 0.12 #465

Merged
merged 2 commits into from Nov 14, 2014

Conversation

Garyfallidis
Copy link
Contributor

Hi @matthew-brett. I believe that this should fix issue #461

@@ -12,16 +12,16 @@

scipy_version = scipy.__version__
scipy_version = StrictVersion(scipy_version.split('.dev')[0])
minimize_version = StrictVersion('0.11')
minimize_version = StrictVersion('0.12')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

from distutils.version import LooseVersion
SCIPY_LESS_0_12 = LooseVersion(scipy.__version__) < '0.12'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference? Why Loose version?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LooseVersion deals with 'dev' correctly so you don't have to do it - therefore making it easier to read IMO.

It also means you can use one line instead of several...

@Garyfallidis
Copy link
Contributor Author

Okay thanx this was helpful info!

Done! Let's see if the bots will sing tonight :)

matthew-brett added a commit that referenced this pull request Nov 14, 2014
MRG: increased SCIPY version definition flag to 0.12

Change scipy dependency rules; should fix issue #461
@matthew-brett matthew-brett merged commit c781789 into dipy:master Nov 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants