Skip to content

Commit 39c3bca

Browse files
authored
add custom prefix to environment variables in setup script (#153)
Signed-off-by: oleg.hoefling <[email protected]>
1 parent 2f62ff7 commit 39c3bca

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/manylinux2010.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
echo ::set-env name=PKGVER::$(/opt/python/${{ matrix.python-abi }}/bin/python setup.py --version)
1919
- name: Build linux_x86_64 wheel
2020
env:
21-
STATIC_DEPS: true
21+
PYXMLSEC_STATIC_DEPS: true
2222
run: |
2323
/opt/python/${{ matrix.python-abi }}/bin/python setup.py bdist_wheel
2424
- name: Label manylinux2010_x86_64 wheel

.github/workflows/sdist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
python setup.py sdist
1818
- name: Install test dependencies
1919
env:
20-
STATIC_DEPS: true
20+
PYXMLSEC_STATIC_DEPS: true
2121
run: |
2222
pip install --upgrade -r requirements-test.txt
2323
pip install dist/xmlsec-$(python setup.py --version).tar.gz

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def run(self):
2929
from pathlib2 import Path
3030

3131
ext = self.ext_map['xmlsec']
32-
self.debug = os.environ.get('DEBUG', False)
33-
self.static = os.environ.get('STATIC_DEPS', False)
32+
self.debug = os.environ.get('PYXMLSEC_ENABLE_DEBUG', False)
33+
self.static = os.environ.get('PYXMLSEC_STATIC_DEPS', False)
3434

3535
if self.static or sys.platform == 'win32':
3636
self.info('starting static build on {}'.format(sys.platform))
@@ -43,7 +43,7 @@ def run(self):
4343
self.build_libs_dir = buildroot / 'libs'
4444
self.build_libs_dir.mkdir(exist_ok=True)
4545

46-
self.libs_dir = Path(os.environ.get('LIBS_DIR', 'libs'))
46+
self.libs_dir = Path(os.environ.get('PYXMLSEC_LIBS_DIR', 'libs'))
4747
self.libs_dir.mkdir(exist_ok=True)
4848

4949
if sys.platform == 'win32':
@@ -180,12 +180,12 @@ def prepare_static_build_win(self):
180180
ext.include_dirs = [str(p.absolute()) for p in includes]
181181

182182
def prepare_static_build_linux(self):
183-
self.openssl_version = os.environ.get('OPENSSL_VERSION', '1.1.1g')
184-
self.libiconv_version = os.environ.get('LIBICONV_VERSION', '1.16')
185-
self.libxml2_version = os.environ.get('LIBXML2_VERSION', None)
186-
self.libxslt_version = os.environ.get('LIBXLST_VERSION', None)
187-
self.zlib_version = os.environ.get('ZLIB_VERSION', '1.2.11')
188-
self.xmlsec1_version = os.environ.get('XMLSEC1_VERSION', '1.2.30')
183+
self.openssl_version = os.environ.get('PYXMLSEC_OPENSSL_VERSION', '1.1.1g')
184+
self.libiconv_version = os.environ.get('PYXMLSEC_LIBICONV_VERSION', '1.16')
185+
self.libxml2_version = os.environ.get('PYXMLSEC_LIBXML2_VERSION', None)
186+
self.libxslt_version = os.environ.get('PYXMLSEC_LIBXLST_VERSION', None)
187+
self.zlib_version = os.environ.get('PYXMLSEC_ZLIB_VERSION', '1.2.11')
188+
self.xmlsec1_version = os.environ.get('PYXMLSEC_XMLSEC1_VERSION', '1.2.30')
189189

190190
self.info('Settings:')
191191
self.info('{:20} {}'.format('Lib sources in:', self.libs_dir.absolute()))

0 commit comments

Comments
 (0)