mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Set dev or release build for pip by env variable
This commit is contained in:
parent
919000a5ef
commit
3329834560
5
setup.py
5
setup.py
@ -1,5 +1,6 @@
|
||||
import glob
|
||||
import os.path
|
||||
import os
|
||||
import sys
|
||||
import pathlib
|
||||
import sysconfig
|
||||
@ -33,7 +34,9 @@ version = git_version[1:].split('-')
|
||||
if len(version)>2:
|
||||
version = version[:2]
|
||||
if len(version)>1:
|
||||
version = '.post'.join(version) + '.dev'
|
||||
version = '.post'.join(version)
|
||||
if not 'NG_NO_DEV_PIP_VERSION' in os.environ:
|
||||
version += '.dev'
|
||||
else:
|
||||
version = version[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user