-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (28 loc) · 872 Bytes
/
setup.py
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
from distutils.core import setup, Extension
import sys
from glob import glob
sources = glob("src/*.c")
undefine = []
define = []
try:
sys.argv.remove("--debug")
undefine.append("NDEBUG")
define.append(("DEBUG", 1))
except ValueError:
pass
_core = Extension("posh._core",
sources,
define_macros=define,
undef_macros=undefine)
setup(name="posh",
version="1.1",
description="POSH -- Python Object Sharing",
long_description="POSH -- Python Object Sharing",
author="Steffen Viken Valvaag",
author_email="[email protected]",
maintainer="Steffen Viken Valvaag",
maintainer_email="[email protected]",
url="http://poshmodule.sourceforge.net/",
license="GNU General Public License (GPL)",
packages=["posh"],
ext_modules=[_core])