mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
setup.py use sys.executable instead of hard-coded 'python' to run make-version.py
This commit is contained in:
parent
d1e07daeee
commit
a9bb0814e6
10
setup.py
10
setup.py
@ -65,9 +65,15 @@ trove_classifiers=[
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# Build _version.py before trying to extract a version from it. If we aren't
|
||||||
|
# running from a darcs checkout, this will leave any pre-existing _version.py
|
||||||
|
# alone.
|
||||||
try:
|
try:
|
||||||
import os
|
os.system(" ".join([sys.executable,
|
||||||
os.system("python misc/make-version.py \"allmydata-tahoe\" \"src/allmydata/_version.py\"")
|
"misc/make-version.py",
|
||||||
|
"allmydata-tahoe",
|
||||||
|
'"src/allmydata/_version.py"', # cygwin vs slashes
|
||||||
|
]))
|
||||||
except Exception, le:
|
except Exception, le:
|
||||||
pass
|
pass
|
||||||
VERSIONFILE = "src/allmydata/_version.py"
|
VERSIONFILE = "src/allmydata/_version.py"
|
||||||
|
Loading…
Reference in New Issue
Block a user