From: yomguy <> Date: Wed, 14 May 2008 14:40:29 +0000 (+0000) Subject: * Modify setup method (distutils) X-Git-Tag: 1.1~836 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1765b973c49223de34d0fb16a72036b6e3c3bd21;p=telemeta.git * Modify setup method (distutils) --- diff --git a/INSTALL b/INSTALL index 956df7e8..1666d37d 100644 --- a/INSTALL +++ b/INSTALL @@ -16,6 +16,14 @@ lame # 2. Install # ========== +2.0. Install Django + Warning: last know revision that works with Telemeta: 5313 + Then, please use subversion to install it : + + $ svn co -r5313 http://code.djangoproject.com/svn/django/trunk/ django + $ cd django + $ sudo python setup.py install + 2.1. Install Telemeta: * On debian or Ubuntu just add these lines to your /etc/apt/sources-list: @@ -29,7 +37,7 @@ lame $ sudo apt-get update $ sudo apt-get install telemeta -* On other linux platforms, install all dependencies listed in §1. +* On other linux platforms, install all dependencies listed at 1. and get the lastest tar.gz version of telemeta at http://debian.parisson.org/ Uncompress the archive, go to the main folder of telemeta and run this command in a shell as root: diff --git a/Makefile b/Makefile deleted file mode 100644 index 569a1dde..00000000 --- a/Makefile +++ /dev/null @@ -1,68 +0,0 @@ -INSTALL ?= install -MAKE ?= make -RM ?= rm -RMDIR ?= rmdir -prefix ?= /usr/local - - -PREFIX = $(DESTDIR)$(prefix) - -BINDIR = $(PREFIX)/bin -MANDIR = $(PREFIX)/share/man/man1 -DATADIR = $(PREFIX)/share/telemeta -SRCDIR = $(DATADIR) -#PIXDIR = $(DATADIR)/pix -#RESDIR = $(DATADIR)/res - -#APPDIR = $(PREFIX)/share/applications -#ICONDIR = $(PREFIX)/share/pixmaps -#LOCALEDIR = $(PREFIX)/share/locale - -#LANGUAGES = `find locale/ -maxdepth 1 -mindepth 1 -type d -printf "%f "` - -help: - @echo Usage: - @echo "make - not used" - @echo "make clean - removes temporary data" - @echo "make install - installs data" - @echo "make uninstall - uninstalls data" - @echo "make help - prints this help" - @echo - - -install: - echo $(PREFIX) - $(INSTALL) -m 755 -d $(BINDIR) $(MANDIR) $(DATADIR) $(SRCDIR) -#$(PIXDIR) $(RESDIR) $(APPDIR) - $(INSTALL) -m 644 *.py $(SRCDIR) -# $(INSTALL) -m 644 res/*.glade $(RESDIR) - $(INSTALL) -m 644 debian/telemeta.1 $(MANDIR) -# $(INSTALL) -m 644 pix/*.png $(PIXDIR) -# $(INSTALL) -m 644 pix/telemeta.xpm $(ICONDIR) -# $(INSTALL) -m 644 res/telemeta.desktop $(APPDIR) - if test -L $(BINDIR)/telemeta; then ${RM} $(BINDIR)/telemeta; fi - ln -s $(SRCDIR)/telemeta.py $(BINDIR)/telemeta - chmod +x $(SRCDIR)/telemeta.py -# $(MAKE) -C po dist -# for lang in $(LANGUAGES); do \ -# ${INSTALL} -m 755 -d $(LOCALEDIR)/$$lang/LC_MESSAGES;\ -# $(INSTALL) -m 644 locale/$$lang/LC_MESSAGES/telemeta.mo $(LOCALEDIR)/$$lang/LC_MESSAGES/; \ -# done - - -uninstall: - ${RM} $(PREFIX)/bin/telemeta -# ${RM} $(APPDIR)/telemeta.desktop - ${RM} $(MANDIR)/telemeta.1 -# ${RM} $(ICONDIR)/telemeta.xpm - ${RM} -rf $(DATADIR) - $(RMDIR) --ignore-fail-on-non-empty $(BINDIR) $(MANDIR) -#$(APPDIR) -# for lang in $(LANGUAGES); do \ -# ${RM} $(LOCALEDIR)/$$lang/LC_MESSAGES/telemeta.mo; \ -# done - -clean: - ${RM} src/*.py[co] res/*~ res/*.bak - -.PHONY: help clean install diff --git a/debian/control b/debian/control index 799f6195..1e3ed671 100644 --- a/debian/control +++ b/debian/control @@ -27,15 +27,15 @@ interfaces and plugin' style audio processing. Here are the main features of Telemeta: - * Secure media editing and archiving over networks. + * Secure media editing and archiving over networks * Easy transcoding * Full tagging and marking methods * XML metadata backup - * Web interface introducing WorkFlow. - * SQL backend (still in dev from march 2007). + * Web interface introducing WorkFlow + * SQL backend * Data anti-corruption security with par2 recovery keys * Data synchronizing over remote servers (rsync) - * Auto AudioMarking? from metadata (thanks to Festival and Ecasound) + * Auto AudioMarking from metadata (thanks to Festival and Ecasound) The Telemeta concept is based on collections. A collection includes original sounds - or albums containing sounds - which will be backuped in a secure way diff --git a/install.py b/install.py deleted file mode 100644 index e52561f3..00000000 --- a/install.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/python -# *coding: utf-8* -# -# Copyright (c) 2006-2007 Guillaume Pellerin -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Library General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -# ONLY FOR LINUX - -import os, sys - -if len(sys.argv) == 1: - install_dir = '/usr/share/telemeta/' -elif len(sys.argv) > 2: - sys.exit('Give just one directory to install Telemeta, or none.') -else: - install_dir = sys.argv[1] - -if not os.path.exists(install_dir): - os.mkdir(install_dir) - -os.system('cp -ra ./* '+install_dir+os.sep) -os.system('rm -rf '+install_dir+os.sep+'debian') - -if os.path.exists('/usr/bin/telemeta'): - os.system('rm -r /usr/bin/telemeta') - -os.system('ln -s '+install_dir+os.sep+'telemeta.py '+'/usr/bin/telemeta') - -print "Installation successfull ! Type 'telemeta' now..." - diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..fac8a6db --- /dev/null +++ b/setup.py @@ -0,0 +1,88 @@ +from distutils.core import setup +from distutils.command.install import INSTALL_SCHEMES +import os +import sys + +def fullsplit(path, result=None): + """ + Split a pathname into components (the opposite of os.path.join) in a + platform-neutral way. + """ + if result is None: + result = [] + head, tail = os.path.split(path) + if head == '': + return [tail] + result + if head == path: + return result + return fullsplit(head, [tail] + result) + +# Tell distutils to put the data_files in platform-specific installation +# locations. See here for an explanation: +# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb +for scheme in INSTALL_SCHEMES.values(): + scheme['data'] = scheme['purelib'] + +# Compile the list of packages available, because distutils doesn't have +# an easy way to do this. +packages, data_files = [], [] +root_dir = os.path.dirname(__file__) +if root_dir != '': + os.chdir(root_dir) +telemeta_dir = 'telemeta' + +for dirpath, dirnames, filenames in os.walk(telemeta_dir): + # Ignore dirnames that start with '.' + for i, dirname in enumerate(dirnames): + if dirname.startswith('.'): del dirnames[i] + if '__init__.py' in filenames: + packages.append('.'.join(fullsplit(dirpath))) + elif filenames: + data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]]) + +# Dynamically calculate the version based on telemeta.VERSION. +version_tuple = __import__('telemeta').__version__ +if version_tuple[2] is not None: + version = "%d.%d_%s" % version_tuple +else: + version = "%d.%d" % version_tuple[:2] + +setup( + name = "telemeta", + url = "/http://svn.parisson.org/telemeta", + description = "web frontend to backup, transcode and tag any audio content with metadata", + author = ["Guillaume Pellerin, Olivier Guilyardi"], + author_email = ["pellerin@parisson.com"], + version = "0.3.1", + packages = packages, + data_files = data_files, + long_description = """ +Telemeta is a global audio archiving program which introduces useful and secure +indexing methods to backup digitalized audio files and metadata dictionnaries. +It is dedicated to backup any digitized and documented sound from collections of +vinyls, magnetic tapes or audio CD over a strong database in accordance with +many standards. Export functions also encapsulate edited metadata into +compressed file. The object style architecture will soon provide user-friendly +interfaces and plugin' style audio processing. + +Here are the main features of Telemeta: + + * Secure media editing and archiving over networks + * Easy transcoding + * Full tagging and marking methods + * XML metadata backup + * Web interface introducing WorkFlow + * SQL backend + * Data anti-corruption security with par2 recovery keys + * Data synchronizing over remote servers (rsync) + * Auto AudioMarking from metadata (thanks to Festival and Ecasound) + +The Telemeta concept is based on collections. A collection includes original +sounds - or albums containing sounds - which will be backuped in a secure way +with a view of transcoded 'public' formats (WAV, FLAC, MP3, OGG and many more +soon...) including metadata editing and publishing tools. + +See http://svn.parisson.org/telemeta/ for more informations. +""" +) + diff --git a/telemeta/__init__.py b/telemeta/__init__.py index fd9cd507..deee127a 100644 --- a/telemeta/__init__.py +++ b/telemeta/__init__.py @@ -11,7 +11,7 @@ U{http://svn.parisson.org/telemeta} """ __docformat__ = 'epytext en' -__version__ = 'SVN' +__version__ = (0, 3, 1) __url__ = 'http://svn.parisson.org/telemeta' __copyright__ = '(C) 2007 Parisson' __license__ = 'BSD' diff --git a/telemeta/visualization/octave_core.py b/telemeta/visualization/octave_core.py index 726851fa..13d8df31 100644 --- a/telemeta/visualization/octave_core.py +++ b/telemeta/visualization/octave_core.py @@ -48,7 +48,7 @@ class OctaveCoreVisualizer(Component): for line in self.get_mFile_line(): mFile_tmp.write(line) - mFile_tmp.close() + #mFile_tmp.close() # Compute proc = subprocess.Popen(command, stdout = subprocess.PIPE) @@ -69,4 +69,4 @@ class OctaveCoreVisualizer(Component): self.pngFile.close() os.remove(mFile_name) - \ No newline at end of file +