-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
23 lines (19 loc) · 918 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
from distutils.core import setup, Extension
import os
cwd = os.getcwd()
compile_args = ['-std=c11', '-pedantic-errors', '-Wall', '-Werror', '-Wshadow', '-Wpedantic', '-g', '-fPIC']
def main():
setup(name="alma",
version="2.0.0",
description="Python interface for the alma C library",
ext_modules=[Extension("alma",
sources = ["almamodule.c"],
include_dirs = ["/usr/lib/python2.7/dist-packages/numpy/core/include/numpy"],
# include_dirs = ["alma_command.h",
# "alma_kb.h",
# "alma_print.h"],
extra_compile_args=compile_args,
library_dirs=["/usr/local/lib"],
libraries=["alma"])])
if __name__ == "__main__":
main()