Commits

Stan Seibert  committed a28e3d5

Remove SNO+ dependencies

  • Participants
  • Parent commits 864ef49

Comments (0)

Files changed (8)

File curl-check.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
-from distutils.version import LooseVersion
-
-version = '7.27.0'
-
-def skip(inst):
-    try:
-        output = inst.cmd_output('curl-config --version')
-        name, version_str = output.split()
-        system_version = LooseVersion(version_str)
-        min_version = LooseVersion('7.26.0')
-        if system_version > min_version:
-            return True # Don't install
-        else:
-            return False # Version too old
-    except:
-        return False # install package if anything went wrong
-
-setup(
-    name='curl-check',
-    version=version,
-    author='Stan Seibert',
-    author_email='stan@mtrr.org',
-    shrinkwrap_installer='autoconf',
-    shrinkwrap_skip=skip,
-    shrinkwrap_source_url='http://curl.haxx.se/download/curl-%s.tar.bz2' % version,
-    cmdclass={'install': ShrinkwrapInstall},
-)
     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
-
+from distutils.version import LooseVersion
 
 version = '7.27.0'
 
+def skip(inst):
+    try:
+        output = inst.cmd_output('curl-config --version')
+        name, version_str = output.split()
+        system_version = LooseVersion(version_str)
+        min_version = LooseVersion('7.26.0')
+        if system_version > min_version:
+            return True # Don't install
+        else:
+            return False # Version too old
+    except:
+        return False # install package if anything went wrong
+
 setup(
-    name='curl',
+    name='curl-check',
     version=version,
     author='Stan Seibert',
     author_email='stan@mtrr.org',
     shrinkwrap_installer='autoconf',
+    shrinkwrap_skip=skip,
     shrinkwrap_source_url='http://curl.haxx.se/download/curl-%s.tar.bz2' % version,
     cmdclass={'install': ShrinkwrapInstall},
 )

File glew.py

-try:
-    from shrinkwrap.install import ShrinkwrapInstall
-except ImportError:
-    import subprocess; subprocess.check_call('pip install shrinkwrap', shell=True)
-    from shrinkwrap.install import ShrinkwrapInstall
-import os
-import glob
-from setuptools import setup
-
-
-version = '1.9.0'
-source_url = 'http://downloads.sourceforge.net/project/glew/glew/%(version)s/glew-%(version)s.tgz' % {'version': version}
-
-
-def installer(inst):
-    inst.download_and_unpack_tarball(source_url)
-
-    glew_dir = 'glew-' + version
-    os.chdir(glew_dir)
-    inst.make(extra_opts=['install', 'GLEW_DEST=%s' % inst.virtualenv])
-
-    env_contents = 'export GLEW_ROOT_DIR=%s' % inst.virtualenv
-    inst.install_env('glew.sh', contents=env_contents)
-
-    # copy libraries to lib if written to lib64
-    lib64_dir = os.path.join(inst.virtualenv, 'lib64')
-    if os.path.exists(lib64_dir):
-        os.chdir(lib64_dir)
-        lib_dir = os.path.join(inst.virtualenv, 'lib')
-        inst.shell('cp -r libGLEW* pkgconfig %s' % lib_dir)
-
-
-setup(
-    name='glew',
-    version=version,
-    author='Andy Mastbaum',
-    author_email='mastbaum@hep.upenn.edu',
-    shrinkwrap_installer=installer,
-    cmdclass={'install': ShrinkwrapInstall},
-)

File openal.py

-try:
-    from shrinkwrap.install import ShrinkwrapInstall
-except ImportError:
-    import subprocess; subprocess.check_call('pip install shrinkwrap', shell=True)
-    from shrinkwrap.install import ShrinkwrapInstall
-from setuptools import setup
-import os
-
-version = '1.14'
-source_url = 'http://kcat.strangesoft.net/openal-releases/openal-soft-%s.tar.bz2' % version
-
-def installer(inst):
-    inst.download_and_unpack_tarball(source_url)
-
-    openal_dir = 'openal-soft-' + version
-    os.chdir(openal_dir)
-
-    os.chdir('build')
-    config_cmd = 'cmake -DCMAKE_INSTALL_PREFIX=%s ..' % (inst.virtualenv)
-    inst.shell(config_cmd)
-
-    inst.make(extra_opts=['install'])
-
-setup(
-    name='openal',
-    version=version,
-    author='Andy Mastbaum',
-    author_email='mastbaum@hep.upenn.edu',
-    shrinkwrap_installer=installer,
-    shrinkwrap_requires=['cmake'],
-    cmdclass={'install': ShrinkwrapInstall},
-)

File rat.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
-import os
-import platform
-
-
-version = 'master'
-source_url = 'git@github.com:snoplus/rat.git'
-
-def installer(inst):
-    # Get source and unpack to $VIRTUAL_ENV/src
-    os.chdir(inst.src_dir)
-    if not os.path.exists('rat'):
-        inst.shell('git clone %s rat' % source_url)
-        os.chdir('rat')
-    else:
-        print '******** Detected exisiting installation of rat in %s/rat ********' % inst.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.' % inst.src_dir
-        raise RuntimeError('rat installation path exists')
-
-    config_cmd = './configure'
-    inst.shell(config_cmd)
-
-    # Install environment file to be used in future calls
-    env_contents = 'source %s\n' % os.path.join(inst.src_dir, 'rat', 'env.sh')
-    inst.install_env('rat.sh', contents=env_contents)
-
-    inst.shell('scons -j%d' % inst.ncpu)
-
-
-setup(
-    name='snoplus-rat',
-    version=version,
-    author='Andy Mastbaum',
-    author_email='mastbaum@hep.upenn.edu',
-    setup_requires=['shrinkwrap'],
-    shrinkwrap_installer=installer,
-    shrinkwrap_requires=['geant4', 'root', 'curl', 'bzip2'],
-    cmdclass={'install': ShrinkwrapInstall},
-)

File sfml.py

-try:
-    from shrinkwrap.install import ShrinkwrapInstall
-except ImportError:
-    import subprocess; subprocess.check_call('pip install shrinkwrap', shell=True)
-    from shrinkwrap.install import ShrinkwrapInstall
-from setuptools import setup
-import os
-
-version = '2.0-rc'
-source_url = 'https://github.com/LaurentGomila/SFML.git'
-
-def installer(inst):
-    inst.shell('git clone ' + source_url)
-
-    os.chdir('SFML')
-    inst.shell('git checkout 2.0-rc')
-
-    config_cmd = 'cmake -DCMAKE_INSTALL_PREFIX=%s' % (inst.virtualenv)
-    inst.shell(config_cmd)
-
-    inst.make(extra_opts=['install'])
-
-setup(
-    name='sfml',
-    version=version,
-    author='Andy Mastbaum',
-    author_email='mastbaum@hep.upenn.edu',
-    shrinkwrap_installer=installer,
-    shrinkwrap_requires=['cmake','glew','openal', 'sndfile'],
-    cmdclass={'install': ShrinkwrapInstall},
-)

File sndfile.py

-try:
-    from shrinkwrap.install import ShrinkwrapInstall
-except ImportError:
-    import subprocess; subprocess.check_call('pip install shrinkwrap', shell=True)
-    from shrinkwrap.install import ShrinkwrapInstall
-from setuptools import setup
-
-
-version = '1.0.25'
-
-setup(
-    name='sndfile',
-    version=version,
-    author='Andy Mastbaum',
-    author_email='mastbaum@hep.upenn.edu',
-    shrinkwrap_installer='autoconf',
-    shrinkwrap_source_url='http://www.mega-nerd.com/libsndfile/files/libsndfile-%s.tar.gz' % version,
-    cmdclass={'install': ShrinkwrapInstall},
-)

File xercesc.py

-try:
-    from shrinkwrap.install import ShrinkwrapInstall
-except ImportError:
-    import subprocess; subprocess.check_call('pip install shrinkwrap', shell=True)
-    from shrinkwrap.install import ShrinkwrapInstall
-from setuptools import setup
-
-
-version = '3.1.1'
-
-setup(
-    name='xercesc',
-    version=version,
-    author='Andy Mastbaum',
-    author_email='mastbaum@hep.upenn.edu',
-    shrinkwrap_installer='autoconf',
-    shrinkwrap_source_url='http://apache.mirrors.tds.net//xerces/c/3/sources/xerces-c-%s.tar.gz' % version,
-    cmdclass={'install': ShrinkwrapInstall},
-)