Include libcdio libraries as appropriate when making pycdio libraries.
This commit is contained in:
8
setup.py
8
setup.py
@@ -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
2
swig/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/pycdio_wrap.c
|
||||
/pyiso9660_wrap.c
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user