Input requirements from the pip list.
parent
a5d120520e
commit
dcd2b1385a
|
@ -1 +1,3 @@
|
||||||
cython<=0.29.8
|
setuptools
|
||||||
|
wheel
|
||||||
|
cython
|
||||||
|
|
|
@ -8,6 +8,11 @@ __license__ = "GPLv3+"
|
||||||
__email__ = "pyslvs@gmail.com"
|
__email__ = "pyslvs@gmail.com"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from os.path import (
|
||||||
|
abspath,
|
||||||
|
dirname,
|
||||||
|
join as pth_join,
|
||||||
|
)
|
||||||
import re
|
import re
|
||||||
import codecs
|
import codecs
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
|
@ -16,7 +21,7 @@ from setuptools.command.build_ext import build_ext
|
||||||
from platform import system
|
from platform import system
|
||||||
from distutils import sysconfig
|
from distutils import sysconfig
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = abspath(dirname(__file__))
|
||||||
include_path = '../include/'
|
include_path = '../include/'
|
||||||
src_path = '../src/'
|
src_path = '../src/'
|
||||||
platform_path = src_path + 'platform/'
|
platform_path = src_path + 'platform/'
|
||||||
|
@ -25,12 +30,12 @@ lib = sysconfig.get_config_var('BINDIR')
|
||||||
|
|
||||||
|
|
||||||
def write(doc, *parts):
|
def write(doc, *parts):
|
||||||
with codecs.open(os.path.join(here, *parts), 'w') as f:
|
with codecs.open(pth_join(here, *parts), 'w') as f:
|
||||||
f.write(doc)
|
f.write(doc)
|
||||||
|
|
||||||
|
|
||||||
def read(*parts):
|
def read(*parts):
|
||||||
with codecs.open(os.path.join(here, *parts), 'r') as f:
|
with codecs.open(pth_join(here, *parts), 'r') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
|
@ -123,11 +128,7 @@ setup(
|
||||||
)],
|
)],
|
||||||
cmdclass={'build_ext': Build},
|
cmdclass={'build_ext': Build},
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.6",
|
||||||
setup_requires=[
|
setup_requires=read('requirements.txt').splitlines(),
|
||||||
'setuptools',
|
|
||||||
'wheel',
|
|
||||||
'cython',
|
|
||||||
],
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Cython",
|
"Programming Language :: Cython",
|
||||||
|
|
Loading…
Reference in New Issue