Skip to content

Commit 2566c7c

Browse files
authored
Merge pull request #570 from EOMYS-Public/pip_install
[BC] Solve pip install issue #569
2 parents 1aff9d5 + 787d54d commit 2566c7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from os import system
2+
from sys import executable
3+
14
try:
25
import setuptools
36
except ImportError: # Install setuptools if needed
4-
from os import system
5-
from sys import executable
67

78
# run 'pip install setuptools'
89
system("{} -m pip install setuptools".format(executable))
@@ -11,6 +12,7 @@
1112

1213
import platform
1314

15+
system("{} -m pip install git+https://gitlab.com/CedMrnl/swat-em.git".format(executable))
1416

1517
# /!\ Increase the number before a release
1618
# See https://www.python.org/dev/peps/pep-0440/
@@ -46,7 +48,6 @@
4648
"SciDataTool>=2.5.0",
4749
"scipy>=1.4.1",
4850
"setuptools",
49-
"git+https://gitlab.com/CedMrnl/swat-em.git",
5051
"xlrd>=1.2.0",
5152
"xlwt>=1.3.0",
5253
]

0 commit comments

Comments
 (0)