-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 1.14 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from distutils.core import setup, Extension
from subprocess import Popen, PIPE
# Generating the c++ executables ---------------------
# FIXME: Provisional code--> missing checks, errors,
# control, ...
import os
import shutil
print '\033[1;39mGenerating C++ executables...\033[1;m'
oldPath = os.getcwd()
os.chdir('procsfile')
_sources = filter( lambda x: os.path.isfile(x), os.listdir('.') )
try:
os.mkdir('.build')
for _file in _sources:
shutil.copy(_file,'./.build/'+_file)
except OSError:
pass
os.chdir('.build')
ccode = Popen( ['make'],stdout=PIPE).communicate()[0]
print ccode
os.chdir( oldPath )
#-------------------------------------------------------
setup(name='pytnp',
version='1.0.0',
description='Python for Tag And Probe utils',
author='Jordi Duarte Campderros',
author_email='[email protected]',
url='http://devel.ifca.es/~duarte/pytnp/dist',
#py_modules=['pytnpclass','__init__'],
packages = ['pytnp','pytnp.libPytnp', 'pytnp.steerplots' ],
package_dir={'pytnp':''},
scripts=['bin/effPlots', 'procsfile/.build/copyFile', 'procsfile/.build/CowboysNTuple']#, 'bin/prepsubJobs.sh','bin/weightCreator.py'],
)