def test_compacting(self): blobber.create_blobbone(config.data_dir, self.dest) self.assertTrue(os.path.exists(self.tmpdir)) self.assertTrue(os.path.exists(self.dest)) self.assertFalse(os.path.exists( os.path.join(self.tmpdir, os.path.split(config.data_dir)[1])))
def create_binaries(self, *args, **kwargs): """ Generate the blob module for static files, too. """ from apaf.blobber import create_blobbone create_blobbone(config._datadir, join(config._root_dir, 'win32blob.py')) _py2exe.create_binaries(self, *args, **kwargs)
includes = ['txtorcon', 'apaf.run.darwin'], # install_requires=['py2app>=0.6.4'], ) PLATFORM_OPTIONS['darwin'] = dict( cmdclass={ 'osx_patch': OSXPatchCommand, }, ) ## WINDOWS otions. ## if config.platform == 'win32': import py2exe #Generate the blob module for static files, too. from apaf.blobber import create_blobbone create_blobbone(config.data_dir, join(config.package_dir, 'blobbone.py')) PLATFORM_OPTIONS['win32'] = dict( zipfile = None, console = APP, # windows = APP, # run as window, not console application. ) OPTIONS_PY2EXE = dict( bundle_files = 1, compressed = True, optimize = 2, includes =['apaf.run.win32'] # install_requires=['py2exe>=0.6.9', 'pywin32'], )
def test_uncompatting(self): blobber.create_blobbone(config.data_dir, self.dest) raw_input() imp.load_module(self.filename, *imp.find_module(self.filename, [self.tmpdir]))