Skip to content

Commit 238bb43

Browse files
author
Prashanth Mundkur
committed
Remove hardcoded paths in setup; make setup a little more complete.
1 parent 20008d6 commit 238bb43

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

python/setup.py

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
import sys, os
22
from distutils.core import setup, Extension
33

4+
script_dir = os.path.dirname(os.path.realpath( __file__ ))
5+
top_dir = os.path.dirname(script_dir)
6+
inc_dir = os.path.join(top_dir, "include")
7+
lib_dir = os.path.join(top_dir, "lib")
8+
49
pycrm114_module = Extension('pycrm114',
510
sources = ['pycrm114_module.c'],
6-
include_dirs = ['../include'],
7-
library_dirs = ['/home/mundkur/proj/libcrm114/lib'],
8-
runtime_library_dirs = ['/home/mundkur/proj/libcrm114/lib'],
11+
include_dirs = [inc_dir],
12+
library_dirs = [lib_dir],
13+
runtime_library_dirs = [lib_dir],
914
libraries = ['tre', 'crm114'],
1015
extra_compile_args=['-Wall', '-g'])
1116

1217
setup(name = 'pycrm114',
13-
version = '0.1',
18+
version = '0.1.0',
1419
description = 'Python interface to libcrm114',
20+
author = 'Prashanth Mundkur',
21+
author_email = 'prashanth.mundkur at gmail.com',
22+
url = 'https://github.com/pmundkur/libcrm114',
23+
license = 'LGPL',
1524
ext_modules = [pycrm114_module])

0 commit comments

Comments
 (0)