Example #1
0
import sys, os, shutil

shutil.rmtree('datapipeline', ignore_errors=True)
path = os.path.abspath('../../..')
pipepath = os.path.abspath('../../../DataPipeline')
peatpath = os.path.abspath('../../../PEATDB')
version = '1.2'

f = Freezer('datapipeline', excludes=('wx'))
f.addScript(os.path.join(pipepath, "PipelineApp.py"))
f.addScript(os.path.join(pipepath, "PipelineCommand.py"))
f.addScript(os.path.join(peatpath, "Ekin/ModelDesign.py"))
f.addScript(os.path.join(peatpath, "Ekin/Ekin_main.py"))

#these lines allow the plugins to work
f.addModule('PEATDB.PEATApp')

m = f.mf
f()  # runs the freezing process
'''post freeze'''
#mpl data
import matplotlib
mpldir = matplotlib.get_data_path()
datadir = 'datapipeline/mpl-data'
shutil.copytree(mpldir, datadir)

#add resource files
resources = [
    'DataPipeline/app.ico', 'DataPipeline/modeldesign.ico',
    'PEATDB/Ekin/Ekin.ico', 'PEATDB/Ekin/models.dict'
]
Example #2
0
from bbfreeze import Freezer
import sys, os, shutil

shutil.rmtree('peatdb', ignore_errors=True)
path=os.path.abspath('../../..')
peatpath=os.path.abspath('../../../PEATDB')
version = '2.0'

f = Freezer('peatdb', excludes=('wx'))
f.addScript(os.path.join(peatpath, "PEATApp.py"))
f.addScript(os.path.join(peatpath, "Ekin/Ekin_main.py"))
f.addScript(os.path.join(peatpath, "Ekin/ModelDesign.py"))
f.addScript(os.path.join(peatpath, "DNAtool/DNAtool.py"))
#these lines allow the plugins to work
f.addModule('PEATDB.PEATApp')
f.addModule('PEATDB.plugins.PEATSAplugin')
f.addModule('PEATSA.WebApp.Data')
f.addModule('PEATSA.Database')
m=f.mf
f()    # runs the freezing process

'''post freeze'''
#mpl data
import matplotlib
mpldir = matplotlib.get_data_path()
datadir = 'peatdb/mpl-data'
shutil.copytree(mpldir, datadir)

#add peat resource files
resources = ['PEATDB/DNAtool/restriction_enzymes.DAT',            
Example #3
0
from bbfreeze import Freezer
from sx.system import System
system = System()

include = (
    "sx",
    '__future__',
    #'rpm',
    'os',
    'sys',
    'distutils',
    'docopt',
    'time',
    'logging',
    'subprocess',
    'pipes',
    'platform',
    'webbrowser',
    'socket',
    're',
)
f = Freezer("merlin.%s" % system.arch , includes=include)
f.addScript("merlin.py")
f.addModule('rpm')
f()
Example #4
0
from bbfreeze import Freezer
import sys, os, shutil

shutil.rmtree('peatdb', ignore_errors=True)
path = os.path.abspath('../../..')
peatpath = os.path.abspath('../../../PEATDB')
version = '2.0'

f = Freezer('peatdb', excludes=('wx'))
f.addScript(os.path.join(peatpath, "PEATApp.py"))
f.addScript(os.path.join(peatpath, "Ekin/Ekin_main.py"))
f.addScript(os.path.join(peatpath, "Ekin/ModelDesign.py"))
f.addScript(os.path.join(peatpath, "DNAtool/DNAtool.py"))
#these lines allow the plugins to work
f.addModule('PEATDB.PEATApp')
f.addModule('PEATDB.plugins.PEATSAplugin')
f.addModule('PEATSA.WebApp.Data')
f.addModule('PEATSA.Database')
m = f.mf
f()  # runs the freezing process
'''post freeze'''
#mpl data
import matplotlib
mpldir = matplotlib.get_data_path()
datadir = 'peatdb/mpl-data'
shutil.copytree(mpldir, datadir)

#add peat resource files
resources = [
    'PEATDB/DNAtool/restriction_enzymes.DAT', 'PEATDB/data/AA_masses.txt',
Example #5
0
import sys, os, shutil

shutil.rmtree('datapipeline', ignore_errors=True)
path=os.path.abspath('../../..')
pipepath=os.path.abspath('../../../DataPipeline')
peatpath=os.path.abspath('../../../PEATDB')
version = '1.2'

f = Freezer('datapipeline', excludes=('wx'))
f.addScript(os.path.join(pipepath, "PipelineApp.py"))
f.addScript(os.path.join(pipepath, "PipelineCommand.py"))
f.addScript(os.path.join(peatpath, "Ekin/ModelDesign.py"))
f.addScript(os.path.join(peatpath, "Ekin/Ekin_main.py"))

#these lines allow the plugins to work
f.addModule('PEATDB.PEATApp')

m=f.mf
f()    # runs the freezing process

'''post freeze'''
#mpl data
import matplotlib
mpldir = matplotlib.get_data_path()
datadir = 'datapipeline/mpl-data'
shutil.copytree(mpldir, datadir)

#add resource files
resources = ['DataPipeline/app.ico',
             'DataPipeline/modeldesign.ico',
             'PEATDB/Ekin/Ekin.ico',
for file in args.mods:
	if not os.path.isfile(file):
		print '%s does not exist, exiting!' % file
		sys.exit(1)
	(name, ext) = os.path.splitext(os.path.basename(file))
	if ext.lower() == '.rs5mod':
		order.append(name)
print 'Mod order:', order

from bbfreeze import Freezer
f = Freezer(args.dest)
f.include_py = False
f.addScript("miaspatch.py", gui_only=True)
for patch in binary_patches:
	f.addModule(patch)
f()

src = os.path.join('communitypatch', 'communitypatch.miasmod')
dst = os.path.join(args.dest, 'communitypatch.miasmod')
shutil.copyfile(src, dst)

src = os.path.join('communitypatch', 'main')
dst = os.path.join(args.dest, 'communitypatch.rs5mod')
extractor.create_rs5(dst, [src], True)

for file in args.mods:
	dst = os.path.join(args.dest, os.path.basename(file))
	shutil.copyfile(file, dst)

if args.language is not None: