swig compilation and invoking unixcompiler now works.

Closer to having setup.py bdist working. Still need to figure out how
add libcdio libraries and how to get the test import working.
This commit is contained in:
R. Bernstein
2008-11-27 22:13:44 -05:00
parent 641e629100
commit 49cb335c79
7 changed files with 8 additions and 9 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
/build
/dist
/pycdio.pyc
/pycdio_wrap.c
/pyiso9660_wrap.c

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python
"""
setup.py file for pycdio
distutils setup (setup.py) for pycdio
"""
from setuptools import setup
@@ -13,17 +13,13 @@ import os
README = os.path.join(os.path.dirname(__file__), 'README.txt')
long_description = open(README).read() + '\n\n'
pycdio_module = Extension('_pycdio',
sources=['pycdio_wrap.c', 'swig/pycdio.swg'],
)
pyiso9660_module = Extension('_pyiso9660',
sources=['iso9660_wrap.c', 'swig/pyiso9660.swg'],
)
pycdio_module = Extension('_pycdio', sources=['swig/pycdio.i'])
pyiso9660_module = Extension('_pyiso9660', sources=['swig/pyiso9660.i'])
setup (name = 'pycdio',
author = 'Rocky Bernstein',
author_email = 'rocky@gnu.org',
description = 'Python OO interface to libcdio (CD Input and Control library)',
py_ext_modules = [pycdio_module, pyiso9660_module],
ext_modules = [pycdio_module, pyiso9660_module],
license = 'GPL',
long_description = long_description,
name = 'pytracer',

3
test/test-cdio.py Executable file → Normal file
View File

@@ -5,7 +5,8 @@ Note: for compatibility with old unittest 1.46 we won't use assertTrue
or assertFalse."""
import unittest, sys, os
libdir = os.path.join(os.path.dirname(__file__), '..')
libdir = os.path.join(os.path.dirname(__file__),
'..', 'build', 'lib.linux-i686-2.5')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)

0
test/test-iso.py Executable file → Normal file
View File

0
test/test-isocopy.py Executable file → Normal file
View File