Skip to content

Commit b26ac39

Browse files
committed
Install git version of Theano
The current release of Theano on PyPI only supports python 2. This change install from the git master branch instead (for both python 2 and python 3). Using '<=0.6.1dev' as the required version is a hack to get pip to install the git version of Theano. If set to '==0.6.1dev' pip will download the git version but then throw an error because the git version is still 0.6.0rc3. If set to '==0.6.0rc3', pip will give preference to the pypi version. requirements.txt, which is no longer read into setup.py, has been removed. Fixes #388
1 parent 8004caf commit b26ac39

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@
2121
'Topic :: Scientific/Engineering :: Mathematics',
2222
'Operating System :: OS Independent']
2323

24-
with open('requirements.txt') as f:
25-
required = f.read().splitlines()
24+
required = ['numpy>=1.7.1', 'scipy>=0.12.0', 'matplotlib>=1.2.1',
25+
'Theano<=0.6.1dev']
2626

2727
if __name__ == "__main__":
28+
## Current release of Theano does not support python 3, so need
29+
## to get it from upstream git repo
30+
dep_links = ['https://github.com/Theano/Theano/tarball/master#egg=Theano-0.6.1dev']
2831

2932
setup(name=DISTNAME,
3033
version=VERSION,
@@ -38,4 +41,5 @@
3841
'pymc.step_methods', 'pymc.tuning',
3942
'pymc.tests', 'pymc.glm'],
4043
classifiers=classifiers,
44+
dependency_links=dep_links,
4145
install_requires=required)

0 commit comments

Comments
 (0)