Commits

Stan Seibert  committed 3b740a7

Package scripts for boost, cmake, and fftw

  • Participants
  • Parent commits 316b471

Comments (0)

Files changed (3)

+from setuptools import setup
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    ShrinkwrapInstall = object
+import os
+
+class Install(ShrinkwrapInstall):
+    version = '1.51.0'
+    version_alt = version.replace('.', '_')
+    source_url = 'http://sourceforge.net/projects/boost/files/boost/%s/boost_%s.tar.bz2' % (version, version_alt)
+
+    def run(self):
+        self.download_and_unpack_tarball(self.source_url)
+        # Remove .tar and .gz
+        basename, ext = os.path.splitext(os.path.basename(self.source_url))
+        basename, ext = os.path.splitext(basename)
+        self.build_dir = basename
+
+        os.chdir(self.build_dir)
+        self.shell('./bootstrap.sh --prefix=' + self.virtualenv)
+        self.shell('./b2 install')
+
+setup(
+    name='boost',
+    version=Install.version,
+    author='Stan Seibert',
+    author_email='stan@mtrr.org',
+    setup_requires=['shrinkwrap'],
+    install_requires=['shrinkwrap'],
+    cmdclass={'install': Install},
+)
+from setuptools import setup
+try:
+    from shrinkwrap.install import ShrinkwrapInstall
+except ImportError:
+    ShrinkwrapInstall = object
+import os
+
+class Install(ShrinkwrapInstall):
+    version = '2.8.9'
+    source_url = "http://www.cmake.org/files/v2.8/cmake-%s.tar.gz" % version
+
+    def run(self):
+        self.download_and_unpack_tarball(self.source_url)
+        # Remove .tar and .gz
+        basename, ext = os.path.splitext(os.path.basename(self.source_url))
+        basename, ext = os.path.splitext(basename)
+        self.build_dir = basename
+
+        os.chdir(self.build_dir)
+        self.shell('./bootstrap --prefix=' + self.virtualenv)
+        self.make()
+        self.make(extra_opts=['install'])
+
+setup(
+    name='cmake',
+    version=Install.version,
+    author='Stan Seibert',
+    author_email='stan@mtrr.org',
+    setup_requires=['shrinkwrap'],
+    install_requires=['shrinkwrap'],
+    cmdclass={'install': Install},
+)
+from setuptools import setup
+try:
+    from shrinkwrap.install import AutoconfInstall
+except ImportError:
+    AutoconfInstall = object
+
+
+class Install(AutoconfInstall):
+    version = '3.3.2'
+    source_url = 'http://www.fftw.org/fftw-%s.tar.gz' % version
+
+setup(
+    name='fftw',
+    version=Install.version,
+    author='Stan Seibert',
+    author_email='stan@mtrr.org',
+    setup_requires=['shrinkwrap'],
+    install_requires=['shrinkwrap'],
+    cmdclass={'install': Install},
+)