https://github.com/samtuhka/pupil
Raw File
Tip revision: 7d507fe72cd3ff19dbb0be9c627b7fdaf0a9dbd4 authored by Moritz Kassner on 22 January 2015, 16:46:08 UTC
small fix
Tip revision: 7d507fe
setup.py
'''
(*)~----------------------------------------------------------------------------------
 Pupil - eye tracking platform
 Copyright (C) 2012-2015  Pupil Labs

 Distributed under the terms of the CC BY-NC-SA License.
 License details are in the file license.txt, distributed as part of this software.
----------------------------------------------------------------------------------~(*)
'''
"""
This is a setup.py script generated by py2applet

Usage:
    python setup.py py2app
"""

from setuptools import setup
import sys,os


# making shared modules accesible
pupil_base_dir = os.path.abspath(__file__).rsplit(os.path.sep, 2)[0]
shared_modules = os.path.join(pupil_base_dir, 'pupil_src', 'shared_modules')
sys.path.append(shared_modules)

APP = ['../pupil_src/capture/main.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True,
			#we need to pull our precompiled c binaries into the resources folder
			'resources':[os.path.join(shared_modules,'c_methods','methods.so'),
						 os.path.join(shared_modules,'uvc_capture','mac_video','uvcc.so'),
						 #here we pull some homebrew genereated dylibs into the resources folder
						 '/usr/local/Cellar/glfw3/3.0.2/lib/libglfw3.dylib',
						 '/usr/local/Cellar/anttweakbar/1.16/lib/libAntTweakBar.dylib' ],
			'iconfile':'macos_icon.icns'
            }
setup(
	name='Pupil',
	author='Pupil Labs: Moritz Kassner, William Patera',
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)

back to top