Skip to content

Commit

Permalink
Use environment instead of argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Meister committed Apr 18, 2024
1 parent 330adf9 commit 1a2addb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion concordance/win/make_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
curdir = os.getcwd()
os.chdir(tempdir)

subprocess.run([ 'python3', '-m', 'build', '-C="--build-option=--win32wheel"', '-w' ])
os.environ["WIN32WHEEL"]="1"
subprocess.run([ 'python3', '-m', 'build', '-w' ])
for file in glob.glob('dist/*.whl'):
print("Found wheel: " + file)
shutil.copy2(file, os.path.dirname(os.path.abspath(__file__)))
Expand Down
5 changes: 2 additions & 3 deletions libconcord/bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
#

from setuptools import setup
import sys
print("Arguments:" + str(sys.argv))
import os

common_name='libconcord'
common_version='1.5'

if '--win32wheel' in sys.argv:
if os.environ.get("WIN32WHEEL", None) == "1":
#Win32 Wheel Option Set
sys.argv.remove('--win32wheel')
setup(
Expand Down

0 comments on commit 1a2addb

Please sign in to comment.