1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
From: Ole Streicher <olebole@debian.org>
Date: Fri, 18 Jan 2019 16:44:53 +0100
Subject: Fix python setup script
* Don't install standard font file
* Remove specification of arch, CC, CFLAGS
* add required libraries
---
python/MontagePy/setup_manylinux.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/python/MontagePy/setup_manylinux.py b/python/MontagePy/setup_manylinux.py
index c1eaab8..8b3fd1e 100644
--- a/python/MontagePy/setup_manylinux.py
+++ b/python/MontagePy/setup_manylinux.py
@@ -11,13 +11,10 @@ objs = []
for obj in os.listdir("lib"):
objs.append("lib/" + obj)
-os.environ['CC'] = 'gcc'
-os.environ['CFLAGS'] = ''
-os.environ['ARCHFLAGS'] = '-arch x86_64'
-
extensions = [
Extension("MontagePy._wrappers", ["MontagePy/_wrappers.pyx"],
include_dirs = [os.path.join(LIB, 'include'), os.path.join(LIB, 'src', 'bzip2-1.0.6'), MONTAGELIB],
+ libraries = ['cfitsio', 'wcstools', 'jpeg', 'freetype'],
extra_objects = objs),
Extension("MontagePy.main", ["MontagePy/main.pyx"],
include_dirs = [os.path.join(LIB, 'include'), MONTAGELIB])
@@ -34,7 +31,6 @@ setup(
keywords = 'astronomy astronomical image reprojection mosaic visualization',
url = 'https://github.com/Caltech-IPAC/Montage',
packages = ['MontagePy'],
- package_data = { 'MontagePy': ['FreeSans.ttf'] },
ext_modules = cythonize(extensions),
install_requires = ['requests']
)
|