File: setup.py

package info (click to toggle)
mathgl 1.9-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 17,496 kB
  • ctags: 3,647
  • sloc: cpp: 36,386; sh: 10,198; ansic: 1,093; makefile: 325; pascal: 52; python: 35
file content (38 lines) | stat: -rw-r--r-- 1,234 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from distutils.core import setup, Extension
import os

try:
	source_dir=os.environ["CMAKE_SOURCE_DIR"]
	mgl_dir="mgl/libmgl.so"
except KeyError:
	source_dir="."
	mgl_dir="mgl/.libs/libmgl.so"

mgl_module = Extension('_mathgl',
    sources=["lang/mgl_python.cpp"],
    include_dirs=["%s/include" % source_dir],
    extra_objects=[mgl_dir]
    )

setup (
    name = "mathgl",
    version = "1.8",
    maintainer="Dmitry Kulagin",
    maintainer_email="dik@ufp.appl.sci-nnov.ru",
    author="Alexey Balakin",
    author_email= "balakin@appl.sci-nnov.ru",
    license="Same terms as MathGL",
    platforms = ["any"],
    url = "http://mathgl.sf.net",
    description = "Python interface for MathGL",
    long_description = "MathGL is a library for the plotting of the data \
 MathGL is a free library of fast C++ routines for the plotting \
 of the data varied in one or more dimensions. It uses OpenGL \
 (www.opengl.org) for the plotting. Also there is a simple window \
 interface based on GLUT. This provides high compatibility with \
 any operating system (really any which has OpenGL-like libraries). \
 Python interface for MathGL",
    package_dir = {"": "lang"},
    py_modules = ["mathgl"],
    ext_modules = [mgl_module]
    )