@@ -14,7 +14,6 @@ class CustomDevelop(develop.develop, object):
14
14
"""
15
15
Class needed for "pip install -e ."
16
16
"""
17
-
18
17
def run (self ):
19
18
subprocess .check_call ("make" , shell = True )
20
19
super (CustomDevelop , self ).run ()
@@ -24,7 +23,6 @@ class CustomBuildPy(build_py.build_py, object):
24
23
"""
25
24
Class needed for "pip install s2p"
26
25
"""
27
-
28
26
def run (self ):
29
27
super (CustomBuildPy , self ).run ()
30
28
subprocess .check_call ("make" , shell = True )
@@ -33,12 +31,10 @@ def run(self):
33
31
34
32
try :
35
33
from wheel .bdist_wheel import bdist_wheel
36
-
37
34
class BdistWheel (bdist_wheel ):
38
35
"""
39
36
Class needed to build platform dependent binary wheels
40
37
"""
41
-
42
38
def finalize_options (self ):
43
39
bdist_wheel .finalize_options (self )
44
40
self .root_is_pure = False
@@ -47,42 +43,40 @@ def finalize_options(self):
47
43
BdistWheel = None
48
44
49
45
50
- requirements = [
51
- "numpy==1.26.4" ,
52
- "scipy" ,
53
- "rasterio[s3]==1.3.10" ,
54
- "utm" ,
55
- "pyproj>=3.0.0" ,
56
- "beautifulsoup4[lxml]" ,
57
- "plyfile" ,
58
- "plyflatten>=0.2.0" ,
59
- "ransac" ,
60
- "rpcm @ git+https://github.com/20treeAI/rpcm.git" ,
61
- "srtm4" ,
62
- "requests" ,
63
- "opencv-python" ,
64
- "geopandas" ,
65
- "geopy" ,
66
- ]
46
+ requirements = ['numpy>=1.22.2' ,
47
+ 'scipy' ,
48
+ 'rasterio[s3]==1.3.8' ,
49
+ 'utm' ,
50
+ 'pyproj>=3.0.0' ,
51
+ 'beautifulsoup4[lxml]' ,
52
+ 'plyfile' ,
53
+ 'plyflatten>=0.2.0' ,
54
+ 'ransac' ,
55
+ 'rpcm @ git+https://github.com/20treeAI/[email protected] ' ,
56
+ 'srtm4' ,
57
+ 'requests' ,
58
+ 'opencv-python' ,
59
+ 'geopandas' ,
60
+ 'geopy' ]
67
61
68
62
extras_require = {
69
63
"test" : ["pytest" , "pytest-cov" , "psutil" ],
70
64
}
71
65
72
- setup (
73
- name = "s2p" ,
74
- version = "1.6.4" ,
75
- description = "Satellite Stereo Pipeline." ,
76
- long_description = readme (),
77
- long_description_content_type = "text/markdown" ,
78
- url = "https://github.com/cmla/s2p" ,
79
- packages = ["s2p" ],
80
- install_requires = requirements ,
81
- extras_require = extras_require ,
82
- cmdclass = {"develop" : CustomDevelop , "build_py" : CustomBuildPy , "bdist_wheel" : BdistWheel },
83
- python_requires = ">=3" ,
84
- entry_points = """
66
+ setup (name = "s2p" ,
67
+ version = "1.6.4" ,
68
+ description = "Satellite Stereo Pipeline." ,
69
+ long_description = readme (),
70
+ long_description_content_type = 'text/markdown' ,
71
+ url = 'https://github.com/cmla/s2p' ,
72
+ packages = ['s2p' ],
73
+ install_requires = requirements ,
74
+ extras_require = extras_require ,
75
+ cmdclass = {'develop' : CustomDevelop ,
76
+ 'build_py' : CustomBuildPy ,
77
+ 'bdist_wheel' : BdistWheel },
78
+ python_requires = ">=3" ,
79
+ entry_points = """
85
80
[console_scripts]
86
81
s2p=s2p.cli:main
87
- """ ,
88
- )
82
+ """ )
0 commit comments