danke! Aber an welcher stelle:
gedit /setup.py
#!/usr/bin/env python
"""Setup script for the mmpython distribution."""
__revision__ = "$Id: setup.py,v 1.12 2004/05/25 14:10:19 the_krow Exp $"
from distutils.core import setup, Extension
import popen2
import version
extensions = [ Extension('mmpython/disc/cdrom', ['disc/cdrommodule.c']) ]
# check for libdvdread (bad hack!)
# Windows does not have Popen4, so catch exception here
try:
child = popen2.Popen4('gcc -ldvdread')
if child.fromchild.readline().find('cannot find') == -1:
# gcc failed, but not with 'cannot find', so libdvd must be
# somewhere (I hope)
extensions.append(Extension('mmpython/disc/ifoparser', ['disc/ifomodule.c'],
libraries=[ 'dvdread' ],
library_dirs=['/usr/local/lib'],
include_dirs=['/usr/local/include']))
child.wait()
except AttributeError, e:
print "No Popen4 found. This seems to be Windows."
print "Installing without libdvdread support."
# Hack: disable extensions for Windows.
# This would better be done by a clean detect of windows. But how?
extensions = []
setup (# Distribution meta-data
name = "mmpython",
version = version.VERSION,
description = "Module for retrieving information about media files",
author = "Thomas Schueppel, Dirk Meyer",
author_email = "freevo-devel@lists.sourceforge.net",
url = "http://mmpython.sf.net",
scripts = [ 'mminfo' ],
package_dir = {'mmpython.video': 'video',
'mmpython.audio': 'audio',
'mmpython.audio.eyeD3': 'audio/eyeD3',
'mmpython.image': 'image',
'mmpython.disc' : 'disc',
'mmpython.misc' : 'misc',
'mmpython': ''},
packages = [ 'mmpython', 'mmpython.video', 'mmpython.audio', 'mmpython.audio.eyeD3',
'mmpython.image', 'mmpython.disc', 'mmpython.misc' ],
# Description of the modules and packages in the distribution
ext_modules = extensions
)
/usr/lib/python2.4$ ls
aifc.py imghdr.pyo shlex.py
aifc.pyc imputil.py shlex.pyc
aifc.pyo imputil.pyc shlex.pyo
anydbm.py imputil.pyo shutil.py
anydbm.pyc inspect.py shutil.pyc
anydbm.pyo inspect.pyc shutil.pyo
asynchat.py inspect.pyo SimpleHTTPServer.py
asynchat.pyc keyword.py SimpleHTTPServer.pyc
asynchat.pyo keyword.pyc SimpleHTTPServer.pyo
asyncore.py keyword.pyo SimpleXMLRPCServer.py
asyncore.pyc lib-dynload SimpleXMLRPCServer.pyc
asyncore.pyo lib-old SimpleXMLRPCServer.pyo
atexit.py lib-tk site-packages
atexit.pyc LICENSE.txt site.py
atexit.pyo linecache.py site.pyc
audiodev.py linecache.pyc site.pyo
audiodev.pyc linecache.pyo smtpd.py
audiodev.pyo locale.py smtpd.pyc
base64.py locale.pyc smtpd.pyo
base64.pyc locale.pyo smtplib.py
base64.pyo logging smtplib.pyc
BaseHTTPServer.py _LWPCookieJar.py smtplib.pyo
BaseHTTPServer.pyc _LWPCookieJar.pyc sndhdr.py
BaseHTTPServer.pyo _LWPCookieJar.pyo sndhdr.pyc
Bastion.py macpath.py sndhdr.pyo
Bastion.pyc macpath.pyc socket.py
Bastion.pyo macpath.pyo socket.pyc
bdb.py macurl2path.py socket.pyo
bdb.pyc macurl2path.pyc SocketServer.py
bdb.pyo macurl2path.pyo SocketServer.pyc
binhex.py mailbox.py SocketServer.pyo
binhex.pyc mailbox.pyc sre_compile.py
binhex.pyo mailbox.pyo sre_compile.pyc
bisect.py mailcap.py sre_compile.pyo
bisect.pyc mailcap.pyc sre_constants.py
bisect.pyo mailcap.pyo sre_constants.pyc
bsddb markupbase.py sre_constants.pyo
calendar.py markupbase.pyc sre_parse.py
calendar.pyc markupbase.pyo sre_parse.pyc
calendar.pyo mhlib.py sre_parse.pyo
CGIHTTPServer.py mhlib.pyc sre.py
CGIHTTPServer.pyc mhlib.pyo sre.pyc
CGIHTTPServer.pyo mimetools.py sre.pyo
cgi.py mimetools.pyc statcache.py
cgi.pyc mimetools.pyo statcache.pyc
cgi.pyo mimetypes.py statcache.pyo
cgitb.py mimetypes.pyc stat.py
cgitb.pyc mimetypes.pyo stat.pyc
cgitb.pyo MimeWriter.py stat.pyo
chunk.py MimeWriter.pyc statvfs.py
chunk.pyc MimeWriter.pyo statvfs.pyc
chunk.pyo mimify.py statvfs.pyo
cmd.py mimify.pyc StringIO.py
cmd.pyc mimify.pyo StringIO.pyc
cmd.pyo modulefinder.py StringIO.pyo
codecs.py modulefinder.pyc stringold.py
codecs.pyc modulefinder.pyo stringold.pyc
codecs.pyo _MozillaCookieJar.py stringold.pyo
codeop.py _MozillaCookieJar.pyc stringprep.py
codeop.pyc _MozillaCookieJar.pyo stringprep.pyc
codeop.pyo multifile.py stringprep.pyo
code.py multifile.pyc string.py
code.pyc multifile.pyo string.pyc
code.pyo mutex.py string.pyo
colorsys.py mutex.pyc _strptime.py
colorsys.pyc mutex.pyo _strptime.pyc
colorsys.pyo netrc.py _strptime.pyo
commands.py netrc.pyc subprocess.py
commands.pyc netrc.pyo subprocess.pyc
commands.pyo new.py subprocess.pyo
compileall.py new.pyc sunaudio.py
compileall.pyc new.pyo sunaudio.pyc
compileall.pyo nntplib.py sunaudio.pyo
compiler nntplib.pyc sunau.py
ConfigParser.py nntplib.pyo sunau.pyc
ConfigParser.pyc ntpath.py sunau.pyo
ConfigParser.pyo ntpath.pyc symbol.py
cookielib.py ntpath.pyo symbol.pyc
cookielib.pyc nturl2path.py symbol.pyo
cookielib.pyo nturl2path.pyc symtable.py
Cookie.py nturl2path.pyo symtable.pyc
Cookie.pyc opcode.py symtable.pyo
Cookie.pyo opcode.pyc tabnanny.py
copy.py opcode.pyo tabnanny.pyc
copy.pyc optparse.py tabnanny.pyo
copy.pyo optparse.pyc tarfile.py
copy_reg.py optparse.pyo tarfile.pyc
copy_reg.pyc os2emxpath.py tarfile.pyo
copy_reg.pyo os2emxpath.pyc telnetlib.py
csv.py os2emxpath.pyo telnetlib.pyc
csv.pyc os.py telnetlib.pyo
csv.pyo os.pyc tempfile.py
curses os.pyo tempfile.pyc
dbhash.py pdb.doc tempfile.pyo
dbhash.pyc pdb.py test
dbhash.pyo pdb.pyc textwrap.py
decimal.py pdb.pyo textwrap.pyc
decimal.pyc __phello__.foo.py textwrap.pyo
decimal.pyo __phello__.foo.pyc this.py
difflib.py __phello__.foo.pyo this.pyc
difflib.pyc pickle.py this.pyo
difflib.pyo pickle.pyc _threading_local.py
dircache.py pickle.pyo _threading_local.pyc
dircache.pyc pickletools.py _threading_local.pyo
dircache.pyo pickletools.pyc threading.py
dis.py pickletools.pyo threading.pyc
dis.pyc pipes.py threading.pyo
dis.pyo pipes.pyc timeit.py
distutils pipes.pyo timeit.pyc
doctest.py pkgutil.py timeit.pyo
doctest.pyc pkgutil.pyc toaiff.py
doctest.pyo pkgutil.pyo toaiff.pyc
DocXMLRPCServer.py platform.py toaiff.pyo
DocXMLRPCServer.pyc platform.pyc tokenize.py
DocXMLRPCServer.pyo platform.pyo tokenize.pyc
dumbdbm.py plat-linux2 tokenize.pyo
dumbdbm.pyc popen2.py token.py
dumbdbm.pyo popen2.pyc token.pyc
dummy_threading.py popen2.pyo token.pyo
dummy_threading.pyc poplib.py traceback.py
dummy_threading.pyo poplib.pyc traceback.pyc
dummy_thread.py poplib.pyo traceback.pyo
dummy_thread.pyc posixfile.py trace.py
dummy_thread.pyo posixfile.pyc trace.pyc
email posixfile.pyo trace.pyo
encodings posixpath.py tty.py
filecmp.py posixpath.pyc tty.pyc
filecmp.pyc posixpath.pyo tty.pyo
filecmp.pyo pprint.py types.py
fileinput.py pprint.pyc types.pyc
fileinput.pyc pprint.pyo types.pyo
fileinput.pyo pty.py tzparse.py
fnmatch.py pty.pyc tzparse.pyc
fnmatch.pyc pty.pyo tzparse.pyo
fnmatch.pyo pyclbr.py unittest.py
formatter.py pyclbr.pyc unittest.pyc
formatter.pyc pyclbr.pyo unittest.pyo
formatter.pyo py_compile.py urllib2.py
fpformat.py py_compile.pyc urllib2.pyc
fpformat.pyc py_compile.pyo urllib2.pyo
fpformat.pyo pydoc.py urllib.py
ftplib.py pydoc.pyc urllib.pyc
ftplib.pyc pydoc.pyo urllib.pyo
ftplib.pyo python urlparse.py
__future__.py Queue.py urlparse.pyc
__future__.pyc Queue.pyc urlparse.pyo
__future__.pyo Queue.pyo UserDict.py
getopt.py quopri.py UserDict.pyc
getopt.pyc quopri.pyc UserDict.pyo
getopt.pyo quopri.pyo UserList.py
getpass.py random.py UserList.pyc
getpass.pyc random.pyc UserList.pyo
getpass.pyo random.pyo user.py
gettext.py reconvert.py user.pyc
gettext.pyc reconvert.pyc user.pyo
gettext.pyo reconvert.pyo UserString.py
glob.py regex_syntax.py UserString.pyc
glob.pyc regex_syntax.pyc UserString.pyo
glob.pyo regex_syntax.pyo uu.py
gopherlib.py regsub.py uu.pyc
gopherlib.pyc regsub.pyc uu.pyo
gopherlib.pyo regsub.pyo warnings.py
gzip.py repr.py warnings.pyc
gzip.pyc repr.pyc warnings.pyo
gzip.pyo repr.pyo wave.py
heapq.py re.py wave.pyc
heapq.pyc re.pyc wave.pyo
heapq.pyo re.pyo weakref.py
hmac.py rexec.py weakref.pyc
hmac.pyc rexec.pyc weakref.pyo
hmac.pyo rexec.pyo webbrowser.py
hotshot rfc822.py webbrowser.pyc
htmlentitydefs.py rfc822.pyc webbrowser.pyo
htmlentitydefs.pyc rfc822.pyo whichdb.py
htmlentitydefs.pyo rlcompleter.py whichdb.pyc
htmllib.py rlcompleter.pyc whichdb.pyo
htmllib.pyc rlcompleter.pyo whrandom.py
htmllib.pyo robotparser.py whrandom.pyc
HTMLParser.py robotparser.pyc whrandom.pyo
HTMLParser.pyc robotparser.pyo xdrlib.py
HTMLParser.pyo sched.py xdrlib.pyc
httplib.py sched.pyc xdrlib.pyo
httplib.pyc sched.pyo xml
httplib.pyo sets.py xmllib.py
ihooks.py sets.pyc xmllib.pyc
ihooks.pyc sets.pyo xmllib.pyo
ihooks.pyo sgmllib.py xmlrpclib.py
imaplib.py sgmllib.pyc xmlrpclib.pyc
imaplib.pyc sgmllib.pyo xmlrpclib.pyo
imaplib.pyo shelve.py zipfile.py
imghdr.py shelve.pyc zipfile.pyc
imghdr.pyc shelve.pyo zipfile.pyo