File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
- intersystems_irispython
2
- -e git+https://github.com/intersystems-community/iris-driver-distribution/raw/main/intersystems_irispython-3.2.0-py3-none-any.whl
1
+ https://github.com/intersystems-community/iris-driver-distribution/raw/main/intersystems_irispython-3.2.0-py3-none-any.whl
Original file line number Diff line number Diff line change 1
- import re
2
1
from setuptools import setup
2
+ import os
3
+
4
+ thelibFolder = os .path .dirname (os .path .realpath (__file__ ))
5
+ requirementPath = thelibFolder + '/requirements.txt'
3
6
4
7
requirements , dependency_links = [], []
5
- with open ('requirements.txt' ) as f :
6
- for line in f .read ().splitlines ():
7
- if line .startswith ('-e git+' ):
8
- dependency_links .append (line .replace ('-e git+' , '' ))
9
- else :
10
- requirements .append (line )
8
+ if os .path .isfile (requirementPath ):
9
+ with open ('./requirements.txt' ) as f :
10
+ for line in f .read ().splitlines ():
11
+ if line .startswith ('http' ):
12
+ dependency_links .append (line )
13
+ else :
14
+ requirements .append (line )
11
15
12
16
setup (install_requires = requirements ,
13
17
dependency_links = dependency_links )
You can’t perform that action at this time.
0 commit comments