Source

shrinkwrap_pkgs_snoplus / 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},
)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.