forked from jleclanche/python-mpq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·58 lines (46 loc) · 1.41 KB
/
setup.py
File metadata and controls
executable file
·58 lines (46 loc) · 1.41 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path
from distutils.core import setup, Extension
#README = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
]
DEBUG = False
compile_args = []
if DEBUG:
compile_args.append("-O0")
module = Extension("mpq.storm", sources=["mpq/stormmodule.cc"], language="c++", libraries=["StormLib"], extra_compile_args=compile_args)
setup(
name = "python-mpq",
ext_modules = [module],
packages = ["mpq"],
author = "Jerome Leclanche",
author_email = "adys.wh@gmail.com",
classifiers = CLASSIFIERS,
description = "Python bindings for StormLib",
download_url = "http://github.com/Adys/python-mpq/tarball/master",
#long_description = README,
url = "http://github.com/Adys/python-mpq",
version = "1.0",
)
import platform
from setuptools import Extension, setup
extra_link_args = []
extra_compile_args = []
# XCode for macOS Mojave issue
if platform.mac_ver()[0] == "10.14":
for flags in extra_link_args, extra_compile_args:
flags += ["-stdlib=libc++", "-mmacosx-version-min=10.9"]
module = Extension(
"mpq.storm",
sources=["mpq/stormmodule.cc"],
language="c++",
libraries=["storm"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
)
setup(ext_modules=[module])