Skip to content

Commit

Permalink
Incorperate Construct as a sub-module and update documentation accord…
Browse files Browse the repository at this point in the history
…ingly.
  • Loading branch information
tuffy committed Sep 13, 2009
1 parent d3d6e8f commit ea4cf7f
Show file tree
Hide file tree
Showing 94 changed files with 70 additions and 133 deletions.
26 changes: 8 additions & 18 deletions INSTALL
Expand Up @@ -4,20 +4,16 @@ To install Python Audio Tools, you simply need to run:

make install

as root from this source directory. This will use the Python interpreter
as root from this source directory. This will use the Python interpreter
to install the audiotools Python module and the executable scripts.
It will then install the man pages from the doc/ subdirectory.
If you do not have the Construct Python module installed, you can run:

make construct_install

as root from the audiotools source directory to install it.
To verify your Python Audio Tools installation, run:

audiotools-config

as a normal user. This will load the audiotools Python module,
if possible, and deliver a listing of available audio formats and
as a normal user. This will load the audiotools Python module,
if possible, and deliver a listing of available audio formats and
current system settings.


Expand All @@ -26,36 +22,30 @@ current system settings.
* The audiotools.cdio module doesn't build correctly

Check that you have the CDIO library installed, commonly known as libcdio
If libcdio is installed the module still doesn't build, ensure that
If libcdio is installed the module still doesn't build, ensure that
you've also installed any accompanying libcdio-devel package.


* The Construct module isn't found

Run the "make construct_install" command from this source directory,
as root, to install this module.


* audiotools-config lists formats as unavailable

Certain audio formats require external programs. For instance,
to use FLAC files, Python Audio Tools requires the flac and metaflac
programs. If these cannot be found in the regular executable search path
to use FLAC files, Python Audio Tools requires the flac and metaflac
programs. If these cannot be found in the regular executable search path
or from the config file, you will not be able to use that format.
Check your system's package manager for programs which may be available
but not yet installed.


* My Python interpreter isn't found, or I wish to use a different one

The first line of Makefile is which Python interpreter is being used for
The first line of Makefile is which Python interpreter is being used for
installation of both the Python Audio Tools and Construct module.
For instance, to use a Python interpreter located at
/opt/python/bin/python, you should change that line to read:

export PYTHON = /opt/python/bin/python

Running make will then invoke the new interpreter for installation of
Running make will then invoke the new interpreter for installation of
the audiotools module and scripts.


Expand Down
5 changes: 2 additions & 3 deletions Makefile
Expand Up @@ -14,16 +14,15 @@ clean:
rm -rfv build
rm -fv audiotools/*.pyc
cd docs && $(MAKE) clean
cd pyconstruct && $(MAKE) clean

distclean: clean
cd docs && $(MAKE) distclean

construct:
cd pyconstruct && $(MAKE)
### This target is no longer required ###

construct_install:
cd pyconstruct && $(MAKE) install
### This target is no longer required ###


#translation specific targets below
Expand Down
14 changes: 2 additions & 12 deletions audiotools/__init__.py
Expand Up @@ -23,6 +23,8 @@
print >>sys.stderr,"*** Python 2.5.0 or better required"
sys.exit(1)


from . import construct as Con
import subprocess
import re
import cStringIO
Expand Down Expand Up @@ -294,18 +296,6 @@ def partial_info(self,s):
pass


try:
import construct as Con
except ImportError:
try:
import Construct as Con
except ImportError:
msg = Messenger("audiotols",None)
msg.error(_(u"construct module not found"))
msg.info(_(u"To remedy this: \"make construct_install\""))
msg.info(_(u"from the audiotools source directory to install the Construct module."))
sys.exit(1)

#raised by open() if the file cannot be identified or opened correctly
class UnsupportedFile(Exception): pass

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 1 addition & 16 deletions docs/install.ms
Expand Up @@ -18,14 +18,6 @@ This will use the Python interpreter to install the audiotools
Python module and the executable scripts.
It will then install the man pages from the \fCdoc/\fR
subdirectory.
If you do not have the Construct Python module installed,
you can run:
.LP
.ft C
make construct_install
.ft
.LP
as root from the audiotools source directory to install it.
.PP
To verify your Python Audio Tools installation, run:
.LP
Expand All @@ -52,13 +44,6 @@ ensure that you've also installed any accompanying \fClibcdio-devel\fR
package.
.PP
.IP \(bu
.B "The Construct module isn't found"
.PP
Run the \fCmake construct_install\fR command from the audiotools
source directory, as root, to install this module.
.PP
.PP
.IP \(bu
.B "The installer complains about missing `python/config/Makefile' of some sort"
.PP
Your distribution probably has separate "python" and "python-devel" packages
Expand Down Expand Up @@ -108,7 +93,7 @@ with the following command:
.B "My Python interpreter isn't found, or I wish to use a different one"
.PP
The first line of \fCMakefile\fR is which Python interpreter is being
used for installation of both the Python Audio Tools and Construct module.
used for installation of Python Audio Tools.
For instance, to use a Python interpreter located at
\fC/opt/python/bin/python\fR, you should change that line to read:
.LP
Expand Down
5 changes: 1 addition & 4 deletions docs/prereqs.ms
Expand Up @@ -12,9 +12,6 @@
Python 2.5.0
http://www.python.org
.IP \(bu
Construct (included)
http://construct.wikispaces.com
.IP \(bu
libcdio
http://www.gnu.org/software/libcdio
.IP \(bu
Expand Down Expand Up @@ -55,7 +52,7 @@ cdrdao
http://cdrdao.sourceforge.net/
.RE
.PP
Python 2.5.0 or higher, libcdio and Construct 2.00 or higher are required.
Python 2.5.0 or higher and libcdio are required.
The rest are optional but recommended in order to get the most out of
these tools.
.TS
Expand Down
12 changes: 0 additions & 12 deletions pyconstruct/Makefile

This file was deleted.

12 changes: 0 additions & 12 deletions pyconstruct/setup.py

This file was deleted.

4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -96,7 +96,9 @@ def pkg_config(package, option):
author = 'Brian Langenberger',
author_email = 'tuffy@users.sourceforge.net',
url='http://audiotools.sourceforge.net',
packages = ["audiotools"],
packages = ["audiotools",
"audiotools.construct",
"audiotools.construct.lib"],
ext_modules = extensions,
data_files = [("/etc",["audiotools.cfg"]),
("share/audiotools",["glade/coverview.glade"]),
Expand Down

0 comments on commit ea4cf7f

Please sign in to comment.