PyPI sdist setup
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
from Cython.Build import cythonize
|
||||
import os
|
||||
|
||||
extensions = Extension(
|
||||
name="tdm_termite",
|
||||
@@ -13,8 +14,15 @@ extensions = Extension(
|
||||
extra_link_args=['-std=c++17'],
|
||||
)
|
||||
|
||||
os.system("git tag > gittags.log")
|
||||
with open ("gittags.log","r") as gt:
|
||||
taglst = gt.readlines()
|
||||
os.remove("gittags.log")
|
||||
version = taglst[-1].replace('\n','').replace('v','')
|
||||
print("building version: "+version)
|
||||
|
||||
setup(
|
||||
version='0.1',
|
||||
version=version,
|
||||
description='TDMtermite cython extension',
|
||||
author='Record Evolution GmbH',
|
||||
author_email='mario.fink@record-evolution.de',
|
||||
|
Reference in New Issue
Block a user