-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
executable file
·54 lines (47 loc) · 1.88 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from distutils.command.build import build
from setuptools import setup, find_packages
from setuptools.command.install import install
from distutils.ccompiler import new_compiler
import os
def get_ext_modules():
import p4d
return [p4d.ffi.verifier.get_extension()]
class CFFIBuild(build):
#----------------------------------------------------------------------
def finalize_options(self):
""""""
self.distribution.ext_modules = get_ext_modules()
build.finalize_options(self)
class CFFIInstall(install):
#----------------------------------------------------------------------
def finalize_options(self):
""""""
self.distribution.ext_modules = get_ext_modules()
install.finalize_options(self)
setup(
zip_safe=False,
name="p4d",
version="1.8",
install_requires=["cffi","python-dateutil" ],
setup_requires=['cffi', 'python-dateutil' ],
packages=find_packages(),
# need to include these files to be able to build our shared library
package_data={'p4d': ['py_fourd.h'],},
cmdclass={
"build": CFFIBuild,
"install": CFFIInstall,
},
author="Israel Brewster",
author_email="israel@brewstersoft.com",
url="https://github.com/ibrewster/p4d",
description="Python DBI module for the 4D database",
long_description="This module provides a Python Database API v2.0 compliant driver for the 4D (4th Dimension, http://www.4d.com ) database. Based off of C library code provided by 4th Dimension and implemented using CFFI",
license='BSD',
classifiers=['Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Topic :: Database',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2'],
keywords='datababase drivers DBI 4d'
)