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
|
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",
]
)
|