Include libcdio libraries as appropriate when making pycdio libraries.

This commit is contained in:
R. Bernstein
2008-11-28 00:21:28 -05:00
parent 49cb335c79
commit 3350762059
5 changed files with 23 additions and 2 deletions

View File

@@ -13,8 +13,12 @@ import os
README = os.path.join(os.path.dirname(__file__), 'README.txt')
long_description = open(README).read() + '\n\n'
pycdio_module = Extension('_pycdio', sources=['swig/pycdio.i'])
pyiso9660_module = Extension('_pyiso9660', sources=['swig/pyiso9660.i'])
pycdio_module = Extension('_pycdio',
libraries=['cdio'],
sources=['swig/pycdio.i'])
pyiso9660_module = Extension('_pyiso9660',
libraries=['iso9660'],
sources=['swig/pyiso9660.i'])
setup (name = 'pycdio',
author = 'Rocky Bernstein',
author_email = 'rocky@gnu.org',

2
swig/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/pycdio_wrap.c
/pyiso9660_wrap.c

View File

@@ -10,6 +10,10 @@ libdir = os.path.join(os.path.dirname(__file__),
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep
sys.path.insert(0, libdir)
import pycdio
import cdio

View File

@@ -6,6 +6,12 @@ This is basically the same thing as libcdio's testiso9660.c"""
import unittest, sys, os
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)
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep

View File

@@ -3,6 +3,11 @@
import unittest, sys, os
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)
libdir = os.path.join(os.path.dirname(__file__), '..')
if libdir[-1] != os.path.sep:
libdir += os.path.sep