1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
diff --git a/setup.py b/setup.py
index 5f44f2f..c43766a 100644
--- a/setup.py
+++ b/setup.py
@@ -25,12 +25,12 @@ if mo:
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
-# Use README.md as the package long description
+# Use README.md as the package long description
with open('README.md') as f:
long_description = f.read()
class CustomBuildExtCommand(build_ext):
- """ This extension command lets us not require numpy be installed before running pip install ripser
+ """ This extension command lets us not require numpy be installed before running pip install ripser
build_ext command for use when numpy headers are needed.
"""
@@ -52,11 +52,11 @@ if platform.system() == "Windows":
])
elif platform.system() == "Darwin":
extra_compile_args.extend([
- '-std=c++11',
+ '-std=c++11',
"-mmacosx-version-min=10.9"
])
extra_link_args.extend([
- "-stdlib=libc++",
+ "-stdlib=libc++",
"-mmacosx-version-min=10.9"
])
else:
@@ -104,7 +104,7 @@ setup(
url="https://ripser.scikit-tda.org",
license='MIT',
packages=['ripser'],
- ext_modules=cythonize(ext_modules),
+ ext_modules=cythonize(ext_modules, language_level = '3'),
install_requires=[
'Cython',
'numpy',
@@ -114,7 +114,7 @@ setup(
],
extras_require={
'testing': [ # `pip install -e ".[testing]"``
- 'pytest'
+ 'pytest'
],
'docs': [ # `pip install -e ".[docs]"`
'sktda_docs_config'
|