-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from openalea/py3
Python 3
- Loading branch information
Showing
32 changed files
with
500 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,6 @@ | |
"version": { | ||
"major": 2, | ||
"minor": 1, | ||
"post": 7 | ||
"post": 8 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from __future__ import absolute_import | ||
# {# pkglts, base | ||
|
||
from . import version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
"""binary dependencies""" | ||
"""Binary dependencies.""" | ||
|
||
__license__ = "Cecill-C" | ||
__revision__ = " $Id$" | ||
from __future__ import absolute_import | ||
from __future__ import print_function | ||
|
||
import pkg_resources | ||
import warnings | ||
|
||
__license__ = "Cecill-C" | ||
__revision__ = " $Id$" | ||
|
||
|
||
def binary_deps(pkg, verbose=True): | ||
""" add to the pkg the version number for binary dependency | ||
""" add to the pkg the version number for binary dependency | ||
:param pkg: package | ||
:param verbose: default is True | ||
""" | ||
|
||
try: | ||
dists = pkg_resources.require(pkg) | ||
except: | ||
warnings.warn("package '" + pkg + "' not found.") | ||
return pkg | ||
|
||
deps = pkg + '==' + dists[0].version | ||
|
||
if verbose: | ||
print ("Binary dependency : '" + deps + "'") | ||
print("Binary dependency : '" + deps + "'") | ||
return deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.