Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
000efcae
提交
000efcae
authored
7月 20, 2012
作者:
nouiz
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #772 from ilanschnell/master
ENH: make setuptools dependency optional
上级
b672a3a0
4a72330a
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
25 行增加
和
13 行删除
+25
-13
distribute_setup.py
distribute_setup.py
+0
-0
setup.py
setup.py
+23
-8
test_linalg.py
theano/sandbox/linalg/tests/test_linalg.py
+0
-2
__init__.py
theano/sparse/__init__.py
+2
-3
没有找到文件。
distribute_setup.py
deleted
100644 → 0
浏览文件 @
b672a3a0
差异被折叠。
点击展开。
setup.py
浏览文件 @
000efcae
...
...
@@ -4,17 +4,15 @@
# * Figure out how to compile and install documentation automatically
# * Add download_url
# Detect whether or not the user has setuptools and use the bundled
# distribute_setup.py bootstrap module if they don't.
import
os
import
subprocess
from
fnmatch
import
fnmatchcase
from
distutils.util
import
convert_path
try
:
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
except
ImportError
:
import
distribute_setup
distribute_setup
.
use_setuptools
()
from
setuptools
import
setup
,
find_packages
from
distutils.core
import
setup
import
os
import
subprocess
CLASSIFIERS
=
"""
\
Development Status :: 4 - Beta
...
...
@@ -54,6 +52,23 @@ ISRELEASED = False
VERSION
=
'
%
d.
%
d.
%
d
%
s'
%
(
MAJOR
,
MINOR
,
MICRO
,
SUFFIX
)
def
find_packages
(
where
=
'.'
,
exclude
=
()):
out
=
[]
stack
=
[(
convert_path
(
where
),
''
)]
while
stack
:
where
,
prefix
=
stack
.
pop
(
0
)
for
name
in
os
.
listdir
(
where
):
fn
=
os
.
path
.
join
(
where
,
name
)
if
(
'.'
not
in
name
and
os
.
path
.
isdir
(
fn
)
and
os
.
path
.
isfile
(
os
.
path
.
join
(
fn
,
'__init__.py'
))
):
out
.
append
(
prefix
+
name
)
stack
.
append
((
fn
,
prefix
+
name
+
'.'
))
for
pat
in
list
(
exclude
)
+
[
'ez_setup'
,
'distribute_setup'
]:
out
=
[
item
for
item
in
out
if
not
fnmatchcase
(
item
,
pat
)]
return
out
def
git_version
():
"""
Return the sha1 of local git HEAD as a string.
...
...
theano/sandbox/linalg/tests/test_linalg.py
浏览文件 @
000efcae
from
pkg_resources
import
parse_version
as
V
import
numpy
import
numpy.linalg
...
...
theano/sparse/__init__.py
浏览文件 @
000efcae
from
pkg_resources
import
parse_version
as
V
import
sys
try
:
import
scipy
enable_sparse
=
V
(
scipy
.
__version__
)
>=
V
(
'0.7'
)
scipy_ver
=
[
int
(
n
)
for
n
in
scipy
.
__version__
.
split
(
'.'
)[:
2
]]
enable_sparse
=
bool
(
scipy_ver
>=
[
0
,
7
])
if
not
enable_sparse
:
sys
.
stderr
.
write
(
"WARNING: scipy version =
%
s."
" We request version >=0.7.0 for the sparse code as it has"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论