Update of /cvsroot/freevo/freevo
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21370
Modified Files:
setup.py
Log Message:
remove runtime code
Index: setup.py
===================================================================
RCS file: /cvsroot/freevo/freevo/setup.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** setup.py 22 Jan 2005 18:31:14 -0000 1.21
--- setup.py 2 Jul 2005 16:45:57 -0000 1.22
***************
*** 18,123 ****
! check_libs((('mmpython', 'http://www.sf.net/projects/mmpython' ),
! ('pygame', 'http://www.pygame.org'),
('Image', 'http://www.pythonware.com/products/pil/'),
('mbus', 'http://www.mbus.org/')))
- print 'WARNING, CVS is unstable right now'
- print 'If you really want to install freevo, make sure you also install'
- print 'the libs in the lib dir (use make install)'
- print
-
- class Runtime(core.Command):
-
- description = "download and install runtime"
- user_options = []
- boolean_options = []
- help_options = []
- negative_opt = {}
-
- def initialize_options (self):
- pass
-
- def finalize_options (self):
- pass
-
- def download(self, package):
- """
- download a package from sourceforge
- """
- url = 'http://osdn.dl.sourceforge.net/sourceforge/' + package
- file = package[package.rfind('/')+1:]
- ddir = os.path.join(os.environ['HOME'], '.freevo/dist')
- if not os.path.isdir(ddir):
- os.system('mkdir -p %s' % ddir)
- full = os.path.join(ddir, file)
- if not os.path.isfile(full):
- print 'Downloading %s' % file
- os.system('wget %s -O %s' % (url, full))
- if not os.path.isfile(full):
- print
- print 'Failed to download %s' % file
- print
- print 'Please download %s from http://www.sf.net/projects/%s' % \
- (file, package[:package.find('/')])
- print 'and store it as %s' % full
- print
- sys.exit(0)
- return full
-
-
- def mmpython_install(self, result, dirname, names):
- """
- install mmpython into the runtime
- """
- for n in names:
- source = os.path.join(dirname, n)
- if dirname.find('/') > 0:
- destdir = dirname[dirname.find('/')+1:]
- else:
- destdir = ''
- dest = os.path.join('runtime/lib/python2.3/site-packages',
- 'mmpython', destdir, n)
- if os.path.isdir(source) and not os.path.isdir(dest):
- os.mkdir(dest)
- if n.endswith('.py') or n == 'mminfo':
- if n == 'dvdinfo.py':
- # runtime contains a bad hack version of dvdinfo
- # the normal one doesn't work
- continue
- os.system('mv "%s" "%s"' % (source, dest))
-
- def run (self):
- """
- download and install the runtime + current mmpython
- """
- mmpython = self.download('mmpython/mmpython-%s.tar.gz' %
version.mmpython)
- runtime = self.download('freevo/freevo-runtime-%s.tar.gz' %
version.runtime)
- print 'Removing runtime directory'
- os.system('rm -rf runtime')
- print 'Unpacking runtime'
- os.system('tar -zxf %s' % runtime)
- print 'Unpacking mmpython'
- os.system('tar -zxf %s' % mmpython)
- print 'Installing mmpython into runtime'
- os.path.walk('mmpython-%s' % version.mmpython, self.mmpython_install,
None)
- os.system('rm -rf mmpython-%s' % version.mmpython)
-
-
- # check if everything is in place
- # if (not os.path.isdir('./Docs/installation/html')) and \
- # (len(sys.argv) < 2 or sys.argv[1].lower() not in ('i18n', '--help',
'--help-commands')):
- # print 'Docs/howto not found. Looks like you are using the CVS version'
- # print 'of Freevo. Please run ./autogen.sh first'
- # sys.exit(0)
-
- # only add files not in share and src
data_files = []
# add some files to Docs
for f in ('COPYING', 'ChangeLog', 'INSTALL', 'README'):
! data_files.append(('share/doc/freevo-%s' % version.__version__, ['%s' % f
]))
! data_files.append(('share/doc/freevo-%s' % version.__version__,
['Docs/CREDITS' ]))
data_files.append(('share/fxd', ['share/fxd/webradio.fxd']))
--- 18,34 ----
! check_libs((('pygame', 'http://www.pygame.org'),
('Image', 'http://www.pythonware.com/products/pil/'),
('mbus', 'http://www.mbus.org/')))
data_files = []
# add some files to Docs
for f in ('COPYING', 'ChangeLog', 'INSTALL', 'README'):
! data_files.append(('share/doc/freevo-%s' % version.__version__,
! ['%s' % f ]))
! data_files.append(('share/doc/freevo-%s' % version.__version__,
! ['Docs/CREDITS' ]))
data_files.append(('share/fxd', ['share/fxd/webradio.fxd']))
***************
*** 145,148 ****
scripts = scripts,
data_files = data_files,
- cmdclass = { 'runtime': Runtime }
)
--- 56,58 ----
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog