Commits

mastbaum committed 864ef49 Draft

change install arg selfs to insts

Comments (0)

Files changed (6)

 source_url = 'http://www.bzip.org/%(version)s/bzip2-%(version)s.tar.gz' % {'version': version}
 
 
-def installer(self):
-    self.download_and_unpack_tarball(source_url)
+def installer(inst):
+    inst.download_and_unpack_tarball(source_url)
 
     bzip2_dir = 'bzip2-' + version
     os.chdir(bzip2_dir)
-    self.make(extra_opts=['install', 'PREFIX=%s CFLAGS="-Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -fPIC"' % self.virtualenv])
+    inst.make(extra_opts=['install', 'PREFIX=%s CFLAGS="-Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -fPIC"' % inst.virtualenv])
 
 setup(
     name='bzip2',
 source_url = 'http://downloads.sourceforge.net/project/glew/glew/%(version)s/glew-%(version)s.tgz' % {'version': version}
 
 
-def installer(self):
-    self.download_and_unpack_tarball(source_url)
+def installer(inst):
+    inst.download_and_unpack_tarball(source_url)
 
     glew_dir = 'glew-' + version
     os.chdir(glew_dir)
-    self.make(extra_opts=['install', 'GLEW_DEST=%s' % self.virtualenv])
+    inst.make(extra_opts=['install', 'GLEW_DEST=%s' % inst.virtualenv])
 
-    env_contents = 'export GLEW_ROOT_DIR=%s' % self.virtualenv
-    self.install_env('glew.sh', contents=env_contents)
+    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(self.virtualenv, 'lib64')
+    lib64_dir = os.path.join(inst.virtualenv, 'lib64')
     if os.path.exists(lib64_dir):
         os.chdir(lib64_dir)
-        lib_dir = os.path.join(self.virtualenv, 'lib')
-        self.shell('cp -r libGLEW* pkgconfig %s' % lib_dir)
+        lib_dir = os.path.join(inst.virtualenv, 'lib')
+        inst.shell('cp -r libGLEW* pkgconfig %s' % lib_dir)
 
 
 setup(
 version = '1.14'
 source_url = 'http://kcat.strangesoft.net/openal-releases/openal-soft-%s.tar.bz2' % version
 
-def installer(self):
-    self.download_and_unpack_tarball(source_url)
+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 ..' % (self.virtualenv)
-    self.shell(config_cmd)
+    config_cmd = 'cmake -DCMAKE_INSTALL_PREFIX=%s ..' % (inst.virtualenv)
+    inst.shell(config_cmd)
 
-    self.make(extra_opts=['install'])
+    inst.make(extra_opts=['install'])
 
 setup(
     name='openal',
 version = '2.0-rc'
 source_url = 'https://github.com/LaurentGomila/SFML.git'
 
-def installer(self):
-    self.shell('git clone ' + source_url)
+def installer(inst):
+    inst.shell('git clone ' + source_url)
 
     os.chdir('SFML')
-    self.shell('git checkout 2.0-rc')
+    inst.shell('git checkout 2.0-rc')
 
-    config_cmd = 'cmake -DCMAKE_INSTALL_PREFIX=%s' % (self.virtualenv)
-    self.shell(config_cmd)
+    config_cmd = 'cmake -DCMAKE_INSTALL_PREFIX=%s' % (inst.virtualenv)
+    inst.shell(config_cmd)
 
-    self.make(extra_opts=['install'])
+    inst.make(extra_opts=['install'])
 
 setup(
     name='sfml',
 source_url = 'http://xorg.freedesktop.org/releases/individual/lib/libX11-%s.tar.gz' % version
 
 
-def installer(self):
-    self.download_and_unpack_tarball(source_url)
+def installer(inst):
+    inst.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'])
+    inst.shell('PKG_CONFIG_PATH=%s ./configure --prefix=%s ' % (os.path.join(inst.virtualenv,'lib','pkgconfig'), inst.virtualenv))
+    inst.make(extra_opts=['install'])
 
 
 setup(
 source_url = 'http://xorg.freedesktop.org/releases/individual/lib/libXext-%s.tar.gz' % version
 
 
-def installer(self):
-    self.download_and_unpack_tarball(source_url)
+def installer(inst):
+    inst.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'])
+    inst.shell('PKG_CONFIG_PATH=%s ./configure --prefix=%s ' % (os.path.join(inst.virtualenv,'lib','pkgconfig'), inst.virtualenv))
+    inst.make(extra_opts=['install'])
 
 
 setup(