Skip to content

Commit

Permalink
chore(pack): Leave both __main__.py files in bin/pvlib.run
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed May 23, 2018
1 parent f71cfcd commit 2e16298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ set +e
cd ./dist
tmpzip=_pvlib.zip
cp polyversion*.whl $tmpzip
zip -d $tmpzip polyversion/__main__.py
## Leave both __main__.py files, one for -m,
# and the other for executing as scrpt.
#zip -d $tmpzip polyversion/__main__.py
zip -j $tmpzip ../pvlib/polyversion/__main__.py
echo -ne '#!python\n' | cat - $tmpzip > "$PVLIB_SH"
chmod a+x "$PVLIB_SH"
Expand Down

0 comments on commit 2e16298

Please sign in to comment.