3
from distutils.command.install import install
4
from distutils.core import setup
6
headers = glob (os.path.join ("CXX","*.hxx"))
7
sources = glob (os.path.join ("Src", "*.cxx")) + \
8
glob (os.path.join ("Src", "*.c"))
11
class my_install (install):
13
def finalize_options (self):
14
if not self.install_data or (len(self.install_data) < 8) :
15
self.install_data = "$base/share/python$py_version_short"
16
install.finalize_options (self)
19
self.distribution.data_files = [("CXX", sources)]
20
self.distribution.headers = headers
26
maintainer = "Barry Scott",
27
maintainer_email = "barry-scott@users.sourceforge.net",
28
description = "Facility for extending Python with C++",
29
url = "http://cxx.sourceforge.net",
31
cmdclass = {'install': my_install},
33
package_dir = {'CXX': 'Lib'}