mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Fix sdists created by newer setuptools versions.
This caused the PyPI package to be broken since I upgraded my computer from Debian bullseye
This commit is contained in:
parent
dd3678e481
commit
068488c546
7
setup.py
7
setup.py
@ -84,7 +84,12 @@ try:
|
|||||||
time.strptime(time.asctime(time.gmtime(date)))[:3])
|
time.strptime(time.asctime(time.gmtime(date)))[:3])
|
||||||
except:
|
except:
|
||||||
if os.path.isfile(VERSION_FILE):
|
if os.path.isfile(VERSION_FILE):
|
||||||
from src.version import version
|
sys.path.insert(0, '') # Missing when installing from an sdist created
|
||||||
|
# by recent setuptools versions?!
|
||||||
|
try:
|
||||||
|
from src.version import version
|
||||||
|
finally:
|
||||||
|
sys.path.pop(0)
|
||||||
else:
|
else:
|
||||||
version = 'installed on ' + time.strftime("%Y-%m-%dT%H-%M-%S", time.gmtime())
|
version = 'installed on ' + time.strftime("%Y-%m-%dT%H-%M-%S", time.gmtime())
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user