Skip to content

Commit 177c406

Browse files
committed
Depend on Theano's master branch (not v0.6)
`as_op` was introduced after the 0.6 release of Theano (commit c5b999ed). See b26ac39 and #389 for an explanation of why '<=' is used instead of '=='. As discussed in #389, this won't trigger a Theano update if the user already has it installed, so previous Theano versions will have to be removed first. Of course, this will only matter if the `as_op` functionality is being used. Fixes #613.
1 parent 3084c88 commit 177c406

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@
2727
'Operating System :: OS Independent']
2828

2929
install_reqs = ['numpy>=1.7.1', 'scipy>=0.12.0', 'matplotlib>=1.2.1',
30-
'Theano==0.6.0']
30+
'Theano<=0.7dev']
3131

3232
test_reqs = ['nose']
3333
if sys.version_info[0] == 2: # py3 has mock in stdlib
3434
test_reqs.append('mock')
3535

36+
## The current release of Theano does not support `as_op` decorator, so
37+
## we're using the developmental version from github.
38+
dep_links = ['https://github.com/Theano/Theano/tarball/master#egg=Theano-0.7dev']
39+
3640
if __name__ == "__main__":
3741
setup(name=DISTNAME,
3842
version=VERSION,
@@ -49,5 +53,6 @@
4953
package_data = {'pymc.examples': ['data/*']},
5054
classifiers=classifiers,
5155
install_requires=install_reqs,
56+
dependency_links=dep_links,
5257
tests_require=test_reqs,
5358
test_suite='nose.collector')

0 commit comments

Comments
 (0)