# 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:
$ 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:
+++ /dev/null
-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
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
+++ /dev/null
-#!/usr/bin/python
-# *coding: utf-8*
-#
-# Copyright (c) 2006-2007 Guillaume Pellerin <yomguy@altern.org>
-#
-# 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..."
-
--- /dev/null
+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.
+"""
+)
+
"""
__docformat__ = 'epytext en'
-__version__ = 'SVN'
+__version__ = (0, 3, 1)
__url__ = 'http://svn.parisson.org/telemeta'
__copyright__ = '(C) 2007 Parisson'
__license__ = 'BSD'
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)
self.pngFile.close()
os.remove(mFile_name)
-
\ No newline at end of file
+