Commits

mastbaum committed eb97004 Draft

package all prerequisites for root

  • Participants
  • Parent commits d3f24bf

Comments (0)

Files changed (10)

 
     bzip2_dir = 'bzip2-' + version
     os.chdir(bzip2_dir)
-    self.make(extra_opts=['install', 'PREFIX=%s' % self.virtualenv])
+    self.make(extra_opts=['install', 'PREFIX=%s CFLAGS="-Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -fPIC"' % self.virtualenv])
 
 setup(
     name='bzip2',
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
+    from shrinkwrap.install import ShrinkwrapInstall
+from setuptools import setup
+
+
+version = '0.18.1.1'
+
+setup(
+    name='gettext',
+    version=version,
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
+    shrinkwrap_installer='autoconf',
+    shrinkwrap_source_url='http://ftp.gnu.org/pub/gnu/gettext/gettext-%s.tar.gz' % version,
+    cmdclass={'install': ShrinkwrapInstall},
+)
 import platform
 
 
-version = '0.1'
-source_url = 'https://deapclean.org/svn/priv/rat'
+version = 'master'
+source_url = 'git@github.com:snoplus/rat.git'
 
 def installer(self):
     # Get source and unpack to $VIRTUAL_ENV/src
     os.chdir(self.src_dir)
-    self.shell('svn co ' + source_url)
-    os.chdir('rat')
+    if not os.path.exists('rat'):
+        self.shell('git clone %s rat' % source_url)
+        os.chdir('rat')
+    else:
+        print '******** Detected exisiting installation of rat in %s/rat ********' % self.src_dir
+        print ' To update, cd to the rat installation and use git commands (e.g. git pull)'
+        print ' To reinstall, delete %s/rat and run this command again. This will delete any uncommitted changes.' % self.src_dir
+        raise RuntimeError('rat installation path exists')
 
     config_cmd = './configure'
     self.shell(config_cmd)
 
 
 setup(
-    name='deapclean-rat',
+    name='snoplus-rat',
     version=version,
-    author='Stan Seibert',
-    author_email='stan@mtrr.org',
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
     setup_requires=['shrinkwrap'],
     shrinkwrap_installer=installer,
-    shrinkwrap_requires=['geant4', 'root', 'curl'],
+    shrinkwrap_requires=['geant4', 'root', 'curl', 'bzip2'],
     cmdclass={'install': ShrinkwrapInstall},
 )
     author='Stan Seibert',
     author_email='stan@mtrr.org',
     shrinkwrap_installer=installer,
-    shrinkwrap_requires=['fftw'],
+    shrinkwrap_requires=['fftw','x11','xext','xft','xpm'],
     cmdclass={'install': ShrinkwrapInstall},
 )
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
+    from shrinkwrap.install import ShrinkwrapInstall
+import os
+from setuptools import setup
+
+
+version = '1.5.0'
+source_url = 'http://xorg.freedesktop.org/releases/individual/lib/libX11-%s.tar.gz' % version
+
+
+def installer(self):
+    self.download_and_unpack_tarball(source_url)
+
+    x11_dir = 'libX11-' + version
+    os.chdir(x11_dir)
+    self.shell('PKG_CONFIG_PATH=%s ./configure --prefix=%s ' % (os.path.join(self.virtualenv,'lib','pkgconfig'), self.virtualenv))
+    self.make(extra_opts=['install'])
+
+
+setup(
+    name='x11',
+    version=version,
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
+    shrinkwrap_installer=installer,
+    shrinkwrap_requires=['xproto'],
+    cmdclass={'install': ShrinkwrapInstall},
+)
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
+    from shrinkwrap.install import ShrinkwrapInstall
+import os
+from setuptools import setup
+
+
+version = '1.3.1'
+source_url = 'http://xorg.freedesktop.org/releases/individual/lib/libXext-%s.tar.gz' % version
+
+
+def installer(self):
+    self.download_and_unpack_tarball(source_url)
+
+    xext_dir = 'libXext-' + version
+    os.chdir(xext_dir)
+    self.shell('PKG_CONFIG_PATH=%s ./configure --prefix=%s ' % (os.path.join(self.virtualenv,'lib','pkgconfig'), self.virtualenv))
+    self.make(extra_opts=['install'])
+
+
+setup(
+    name='xext',
+    version=version,
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
+    shrinkwrap_installer=installer,
+    shrinkwrap_requires=['xextproto'],
+    cmdclass={'install': ShrinkwrapInstall},
+)

File xextproto.py

+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
+    from shrinkwrap.install import ShrinkwrapInstall
+from setuptools import setup
+
+
+version = '7.2.1'
+
+setup(
+    name='xextproto',
+    version=version,
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
+    shrinkwrap_installer='autoconf',
+    shrinkwrap_source_url='http://xorg.freedesktop.org/releases/individual/proto/xextproto-%s.tar.gz' % version,
+    cmdclass={'install': ShrinkwrapInstall},
+)
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
+    from shrinkwrap.install import ShrinkwrapInstall
+from setuptools import setup
+
+
+version = '2.3.1'
+
+setup(
+    name='xft',
+    version=version,
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
+    shrinkwrap_installer='autoconf',
+    shrinkwrap_source_url='http://xorg.freedesktop.org/archive/individual/lib/libXft-%s.tar.gz' % version,
+    cmdclass={'install': ShrinkwrapInstall},
+)
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
+    from shrinkwrap.install import ShrinkwrapInstall
+from setuptools import setup
+
+
+version = '3.5.10'
+
+setup(
+    name='xpm',
+    version=version,
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
+    shrinkwrap_installer='autoconf',
+    shrinkwrap_source_url='http://xorg.freedesktop.org/archive/individual/lib/libXpm-%s.tar.gz' % version,
+    shrinkwrap_requires=['gettext'],
+    cmdclass={'install': ShrinkwrapInstall},
+)
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    import subprocess; subprocess.check_call('pip install -b $VIRTUAL_ENV/build/build-shrinkwrap shrinkwrap', shell=True)
+    from shrinkwrap.install import ShrinkwrapInstall
+from setuptools import setup
+
+
+version = '7.0.23'
+
+setup(
+    name='xproto',
+    version=version,
+    author='Andy Mastbaum',
+    author_email='mastbaum@hep.upenn.edu',
+    shrinkwrap_installer='autoconf',
+    shrinkwrap_source_url='http://xorg.freedesktop.org/releases/individual/proto/xproto-%s.tar.gz' % version,
+    cmdclass={'install': ShrinkwrapInstall},
+)