File: setup.py

package info (click to toggle)
pyraf 2.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,384 kB
  • sloc: python: 24,918; ansic: 372; lisp: 76; makefile: 8
file content (19 lines) | stat: -rwxr-xr-x 611 bytes parent folder | download | duplicates (2)
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')})