| 1 |
#!/usr/bin/python3 |
| 2 |
|
| 3 |
#c Copyright 2008-2025, the GAVO project <[email protected]> |
| 4 |
#c |
| 5 |
#c This program is free software, covered by the GNU GPL. See the |
| 6 |
#c COPYING file in the source distribution. |
| 7 |
|
| 8 |
|
| 9 |
import os |
| 10 |
import sys |
| 11 |
|
| 12 |
from setuptools import setup, find_packages, Extension |
| 13 |
|
| 14 |
VERSION = "2.13" |
| 15 |
|
| 16 |
if sys.hexversion<0x03090000: |
| 17 |
sys.exit("DaCHS2 definitely requires python 3.9 or later.") |
| 18 |
|
| 19 |
if "DACHS_PIP_MESS" in os.environ: |
| 20 |
# So... a pip install . into a virtual python might very well work now. |
| 21 |
# Note that this is not tested regularly. So, if there is breakage, |
| 22 |
# please report. |
| 23 |
install_requires = [ |
| 24 |
"astropy", "cryptography", "docutils", "lxml", "matplotlib", "numpy", "Pillow", "setuptools", "psycopg2", "pymoc", "pyparsing", "rjsmin", "testresources", "twisted", "python-multipart", "PyOpenSSL", |
| 25 |
] |
| 26 |
else: |
| 27 |
install_requires = [] |
| 28 |
|
| 29 |
|
| 30 |
SETUP_ARGS = { |
| 31 |
"name": "gavodachs", |
| 32 |
"description": "ZAH GAVO data center complete package", |
| 33 |
"url": "http://vo.ari.uni-heidelberg.de/soft", |
| 34 |
"license": "GPL", |
| 35 |
"author": "Markus Demleitner", |
| 36 |
"author_email": "[email protected]", |
| 37 |
"packages": find_packages(), |
| 38 |
# We're not zip-safe because the XSD validator accesses dist files by path |
| 39 |
"zip_safe": False, |
| 40 |
"include_package_data": True, |
| 41 |
"install_requires": install_requires, |
| 42 |
"entry_points": { |
| 43 |
'console_scripts': [ |
| 44 |
'gavo = gavo.user.cli:main', |
| 45 |
'dachs = gavo.user.cli:main', |
| 46 |
] |
| 47 |
}, |
| 48 |
"version": VERSION, |
| 49 |
} |
| 50 |
|
| 51 |
if __name__=="__main__": |
| 52 |
setup(**SETUP_ARGS) |