-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
27 lines (22 loc) · 815 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
24
25
26
27
from setuptools import setup, Extension
import subprocess
__version__ = '0.5.0'
module = Extension(
'_pyhp',
['_pyhp.c', 'python_object_proxy.c', 'translate_python_value.c', 'translate_php_value.c'],
libraries=['php5'],
extra_compile_args=subprocess.check_output(['php-config', '--includes']).split(' '),
extra_link_args=subprocess.check_output(['php-config', '--ldflags']).strip().split(' ') + \
subprocess.check_output(['php-config', '--libs']).strip().split(' '),
)
setup(
name='pyhp',
version=__version__,
py_modules=['pyhp'],
ext_modules=[module],
description='PHP embedded in Python',
author='Ingmar Steen',
author_email='[email protected]',
url='https://github.com/iksteen/pyhp/',
download_url='https://github.com/iksteen/pyhp/tarball/v%s' % __version__,
)