File: setup.py

package info (click to toggle)
pycxx 6.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,212 kB
  • ctags: 2,729
  • sloc: cpp: 6,126; python: 756; sh: 89; ansic: 60; makefile: 54
file content (35 lines) | stat: -rwxr-xr-x 1,145 bytes parent folder | download
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
import os, sys
from glob import glob
from distutils.command.install import install
from distutils.core import setup

headers = (glob( os.path.join( "CXX","*.hxx" ) )
          +glob( os.path.join( "CXX","*.h" ) ))
sources = (glob( os.path.join( "Src", "*.cxx" ) )
          +glob( os.path.join( "Src", "*.c" ) ))


class my_install (install):

    def finalize_options (self):
        if not self.install_data or (len(self.install_data) < 8) :
            self.install_data = "$base/share/python$py_version_short"
        install.finalize_options (self)

    def run (self):
        self.distribution.data_files = [("CXX", sources)]
        self.distribution.headers = headers
        install.run (self)


setup (name             = "CXX",
       version          = "6.2.5",
       maintainer       = "Barry Scott",
       maintainer_email = "barry-scott@users.sourceforge.net",
       description      = "Facility for extending Python with C++",
       url              = "http://cxx.sourceforge.net",
       
       cmdclass         = {'install': my_install},
       packages         = ['CXX'],
       package_dir      = {'CXX': 'Lib'}
      )