1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#! /usr/bin/env python3
import os
import platform
from setuptools import setup, Extension
modules = []
# On a Mac, xutil is not required since the graphics is done directly with Aqua.
# If one still wants to include it, the parameters
# library_dirs="/usr/X11/libs"
# include_dirs="/usr/X11/include"
# need to be added to the Extension
if platform.system() not in ('Darwin', 'Windows'):
modules.append(Extension('pyraf.xutil', ['pyraf/xutil.c'],
libraries=['X11']))
setup(ext_modules=modules,
use_scm_version={'write_to': os.path.join('pyraf', 'version.py')})
|