Skip to content

Commit

Permalink
heppy and heppy_batch.py should work in pypi install
Browse files Browse the repository at this point in the history
  • Loading branch information
cbernet committed Feb 6, 2019
1 parent d40e202 commit 33d7f1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions bin/heppy
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ do
fi
done

bindir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

if [ "$interactive" = true ]; then
args=`echo $@ | sed -e 's#-i##g'`
ln -sf $HEPPY/bin/heppy_interactive.py tmp_heppy.py
ln -sf $bindir/heppy_interactive.py tmp_heppy.py
ipython -i tmp_heppy.py -- $args
else
ln -sf $HEPPY/bin/heppy_loop.py tmp_heppy.py
echo $heppy
ln -sf $bindir/heppy_loop.py tmp_heppy.py
ipython -- tmp_heppy.py "$@"
fi
rm tmp_heppy.py
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@

scripts = glob.glob('bin/*.py')
scripts.remove('bin/__init__.py')
scripts.append('bin/heppy')
print scripts

with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name='heppyfwk',
version='2.0.5',
version='2.0.9',
author='Colin Bernet',
author_email='[email protected]',
description='An event processing framework for High Energy Physics.',
Expand Down Expand Up @@ -50,7 +51,8 @@
'scipy',
'dill',
'gitpython',
'pyyaml'
'pyyaml',
'ipython'
],
scripts = scripts
)
Expand Down

0 comments on commit 33d7f1d

Please sign in to comment.