-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable Py2.7 builds under Travis, CircleCI and AppVeyor (#2601)
* Disable Py2.7 builds under Travis and AppVeyor * use Py3.7.4 image under CircleCI * tweak circleci config.yml * patch tox.ini * more fixes to get docs building under tox * s/python3.7/python3/ * delay annoy ImportError until actual use * bring back Pattern * simplify invokation of pip command * add install_numpy_scipy.py * fixup * use sys.executable * adjust version in install_wheels.py * adjust travis.yml * adjust version in install_wheels.py back * add logging statements * use version_info instead of sys.version * fixup
- Loading branch information
Showing
8 changed files
with
66 additions
and
57 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Install wheels for numpy and scipy. | ||
Without wheels, installation requires doing a build, which is too much. | ||
The versions of the packages for which wheels are available depends on | ||
the current Python version. | ||
We use this when building/testing gensim in a CI environment (Travis, AppVeyor, | ||
etc). | ||
""" | ||
|
||
import subprocess | ||
import sys | ||
|
||
|
||
def main(): | ||
if sys.version_info[:2] == (3, 7): | ||
packages = ['numpy==1.14.5', 'scipy==1.1.0'] | ||
else: | ||
packages = ['numpy==1.11.3', 'scipy==1.0.0'] | ||
command = [sys.executable, '-m', 'pip', 'install'] + packages | ||
|
||
print('sys.executable: %r' % sys.executable, file=sys.stderr) | ||
print('sys.version_info: %r' % list(sys.version_info), file=sys.stderr) | ||
print('command: %r' % command, file=sys.stderr) | ||
|
||
subprocess.check_call(command) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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 was deleted.
Oops, something went wrong.
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