usr bin env python coding utf-8 import os path from setuptools import

 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path
from setuptools import setup
from setuptools import find_packages
from setuptools import Extension
def make_extension(name, sources):
return Extension(name,
sources = [os.path.join('src', 'ctpp2', s) for s in sources],
include_dirs = [
#'/usr/local/include/ctpp2',
#'/usr/include/ctpp2',
#'/usr/local/include',
#'/usr/include',
'/opt/local/include/ctpp2'
],
library_dirs = [
#'/usr/local/lib',
#'/usr/lib',
'/opt/local/lib'
],
libraries = ['ctpp2']
)
modules = []
modules.append(make_extension(name='ctpp2._ctpp_compiler', sources=['ctpp2compiler.cpp']))
modules.append(make_extension(name='ctpp2._ctpp_vm', sources=['ctpp2vm.cpp']))
modules.append(make_extension(name='ctpp2._ctpp_bytecode', sources=['ctpp2bytecode.cpp']))
setup(
name='CTPP2',
namespace_packages=['ctpp2'],
version='2.4.3',
author="Andrei V. Shetuhin",
author_email="reki@reki.ru",
maintainer="Andrei V. Shetuhin",
maintainer_email="reki@reki.ru",
contact_email="reki@reki.ru",
url='http://ctpp.havoc.ru',
packages=find_packages('src'),
package_dir={'': 'src'},
license='BSD-like',
description='',
ext_modules=modules)