diff options
author | bapt <bapt@FreeBSD.org> | 2015-10-27 21:24:09 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-10-27 21:24:09 +0000 |
commit | 1db684f7ee1410ba0acf51937dc2748211c38efa (patch) | |
tree | 9b000a9777302debbb64fb5d2b8670bf0685b757 /contrib/libucl/python/setup.py | |
parent | f4de602b0d1cd88f3d73de6148c83c4158e58a15 (diff) | |
parent | bf66c97c4a64e64410bf0223d221a54ca9555f52 (diff) | |
download | FreeBSD-src-1db684f7ee1410ba0acf51937dc2748211c38efa.zip FreeBSD-src-1db684f7ee1410ba0acf51937dc2748211c38efa.tar.gz |
Update libucl to latest git snapshot (20151027)
Diffstat (limited to 'contrib/libucl/python/setup.py')
-rw-r--r-- | contrib/libucl/python/setup.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/libucl/python/setup.py b/contrib/libucl/python/setup.py new file mode 100644 index 0000000..b2b8981 --- /dev/null +++ b/contrib/libucl/python/setup.py @@ -0,0 +1,37 @@ +import distutils.ccompiler +import distutils.sysconfig +from distutils.core import setup, Extension +import os + + +compiler = distutils.ccompiler.new_compiler() +search_paths=[os.path.expanduser('~/{}'), '/opt/local/{}', '/usr/local/{}', '/usr/{}'] +lib_paths = [ a.format("lib") for a in search_paths] +inc_paths = [ a.format("include") for a in search_paths] + +uclmodule = Extension('ucl', + include_dirs = inc_paths, + library_dirs = lib_paths, + libraries = ['ucl'], + sources = ['src/uclmodule.c'], + runtime_library_dirs = lib_paths, + language='c') + +setup(name='ucl', + version='1.0', + description='ucl parser and emmitter', + ext_modules = [uclmodule], + author="Eitan Adler", + author_email="lists@eitanadler.com", + url="https://github.com/vstakhov/libucl/", + license="MIT", + classifiers=["Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: DFSG approved", + "License :: OSI Approved :: MIT License", + "Programming Language :: C", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Software Development :: Libraries", + ] + ) |