Commit 7247f57e authored by Daniel Brown's avatar Daniel Brown

Removing the 'remove' of version.py, seems to cause an issue with pip

parent 0072dc6e
......@@ -23,33 +23,31 @@ try:
except:
with open(version_py, 'r') as fh:
version_git = open(version_py).read().strip().split('=')[-1].replace('"','')
version_msg = "# Do not edit this file, pipeline versioning is governed by git tags"
with open(version_py, 'w') as fh:
fh.write(version_msg + os.linesep + ("__version__=\"%s\"" % version_git))
print("!!!! Printing version to:", version_py)
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
try:
setup(
name='PyKat',
version=version_git,
author='Daniel Brown',
author_email='ddb@star.sr.bham.ac.uk',
packages=[x[0].replace("/",".") for x in os.walk("pykat") if "__" not in x[0]],
url='http://pypi.python.org/pypi/PyKat/',
license='GPL v2',
description='Python interface and tools for FINESSE',
long_description=open('README.md').read(),
install_requires=REQUIREMENTS,
package_data={'': ['optics/greedypoints/*.txt',
'ifo/aligo/files/*.kat',
'ifo/adv/files/*.kat',
'ifo/voyager/files/*.kat',
'style/*.mplstyle']},
include_package_data=True
)
finally:
os.remove(version_py)
setup(
name='PyKat',
version=version_git,
author='Daniel Brown',
author_email='finesse@star.sr.bham.ac.uk',
packages=[x[0].replace("/",".") for x in os.walk("pykat") if "__" not in x[0]],
url='http://pypi.python.org/pypi/PyKat/',
license='GPL v2',
description='Python interface and tools for FINESSE',
long_description=open('README.md').read(),
install_requires=REQUIREMENTS,
package_data={'': ['optics/greedypoints/*.txt',
'ifo/aligo/files/*.kat',
'ifo/adv/files/*.kat',
'ifo/voyager/files/*.kat',
'style/*.mplstyle']},
include_package_data=True
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment