提交 4db9d890 编写于 作者: L liweibin

update

上级 902eb6ff
...@@ -3,6 +3,5 @@ mistune ...@@ -3,6 +3,5 @@ mistune
sphinx_rtd_theme sphinx_rtd_theme
numpy >= 1.16.4 numpy >= 1.16.4
cython >= 0.25.2 cython >= 0.25.2
networkx
paddlepaddle paddlepaddle
pgl pgl
...@@ -3,4 +3,4 @@ cython >= 0.25.2 ...@@ -3,4 +3,4 @@ cython >= 0.25.2
#paddlepaddle #paddlepaddle
redis-py-cluster == 1.3.6 redis-py-cluster
...@@ -24,16 +24,14 @@ from setuptools.command.build_ext import build_ext as _build_ext ...@@ -24,16 +24,14 @@ 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 return cythonize(*args, **kwargs)
return cythonize(*args, **kwargs)
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:
...@@ -41,7 +39,6 @@ class CustomBuildExt(_build_ext): ...@@ -41,7 +39,6 @@ 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()
...@@ -111,7 +108,7 @@ setup( ...@@ -111,7 +108,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.
先完成此消息的编辑!
想要评论请 注册