Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PGL
提交
199c6582
P
PGL
项目概览
PaddlePaddle
/
PGL
通知
76
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
11
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PGL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
11
Issue
11
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
199c6582
编写于
10月 29, 2019
作者:
L
liweibin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reset setup.py
上级
6bb51881
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
8 addition
and
5 deletion
+8
-5
setup.py
setup.py
+8
-5
未找到文件。
setup.py
浏览文件 @
199c6582
...
@@ -24,6 +24,7 @@ from setuptools.command.build_ext import build_ext as _build_ext
...
@@ -24,6 +24,7 @@ from setuptools.command.build_ext import build_ext as _build_ext
try
:
try
:
from
Cython.Build
import
cythonize
from
Cython.Build
import
cythonize
except
ImportError
:
except
ImportError
:
def
cythonize
(
*
args
,
**
kwargs
):
def
cythonize
(
*
args
,
**
kwargs
):
"""cythonize"""
"""cythonize"""
from
Cython.Build
import
cythonize
from
Cython.Build
import
cythonize
...
@@ -32,6 +33,7 @@ except ImportError:
...
@@ -32,6 +33,7 @@ except ImportError:
class
CustomBuildExt
(
_build_ext
):
class
CustomBuildExt
(
_build_ext
):
"""CustomBuildExt"""
"""CustomBuildExt"""
def
finalize_options
(
self
):
def
finalize_options
(
self
):
_build_ext
.
finalize_options
(
self
)
_build_ext
.
finalize_options
(
self
)
# Prevent numpy from thinking it is still in its setup process:
# Prevent numpy from thinking it is still in its setup process:
...
@@ -39,6 +41,7 @@ class CustomBuildExt(_build_ext):
...
@@ -39,6 +41,7 @@ class CustomBuildExt(_build_ext):
import
numpy
import
numpy
self
.
include_dirs
.
append
(
numpy
.
get_include
())
self
.
include_dirs
.
append
(
numpy
.
get_include
())
workdir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
workdir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
with
open
(
os
.
path
.
join
(
workdir
,
'./requirements.txt'
))
as
f
:
with
open
(
os
.
path
.
join
(
workdir
,
'./requirements.txt'
))
as
f
:
requirements
=
f
.
read
().
splitlines
()
requirements
=
f
.
read
().
splitlines
()
...
@@ -108,7 +111,7 @@ setup(
...
@@ -108,7 +111,7 @@ setup(
'numpy>=1.16.4'
,
'numpy>=1.16.4'
,
],
],
install_requires
=
requirements
,
install_requires
=
requirements
,
cmdclass
=
{
'build_ext'
:
CustomBuildExt
},
cmdclass
=
{
'build_ext'
:
CustomBuildExt
},
packages
=
find_packages
(),
packages
=
find_packages
(),
include_package_data
=
True
,
include_package_data
=
True
,
#ext_modules=cythonize(extensions),
#ext_modules=cythonize(extensions),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录