Skip to content

python[23]-wrapper: Set default to python3 #1712

Merged
merged 1 commit into from
Feb 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 3 additions & 18 deletions python2-wrapper.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION python2-wrapper-1.2-0
# BEE_VERSION python2-wrapper-1.3-0

## this file was created by bee init and should be executed to build a
## bee-package. (Additional hints are located at the end of this file.)
Expand Down Expand Up @@ -68,30 +68,15 @@ mee_build() {
mee_install() {
mkdir -p "$D$BINDIR"
for cmd in \
idle \
pydoc \
python \
python-config \
ipython \
python2-config \
python2 \
ipython2 \
jupyter \
macs2 \
htseq-count \
htseq-qa \
umi_tools \
gnome-doc-prepare \
xml2po \
gnome-doc-tool \
pssh \
iotop \
rst2html.py rst2html4.py rst2html5.py \
rst2latex.py rst2xetex.py \
rst2man.py \
rst2odt.py rst2odt_prepstyles.py \
rst2pseudoxml.py rst2xml.py \
rst2s5.py \
rstpep2html.py
iotop
do
ln "$B/wrapper" "$D$BINDIR/$cmd"
done
Expand Down
26 changes: 24 additions & 2 deletions python3-wrapper.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION python3-wrapper-1.0-0
# BEE_VERSION python3-wrapper-1.1-0

## this file was created by bee init and should be executed to build a
## bee-package. (Additional hints are located at the end of this file.)
Expand Down Expand Up @@ -68,7 +68,7 @@ create_bin_wrapper() {
if [ -z "$target" ]; then
ln "$B/wrapper" "$D$BINDIR/$cmd"
else
echo -e '#! /bin/bash\nprun python3 "$target" "$@"' > "$D$BINDIR/$cmd"
echo -e "#! /bin/bash\nprun python3 \"$target\" \"\$@\"" > "$D$BINDIR/$cmd"
chmod +x "$D$BINDIR/$cmd"
fi
}
Expand All @@ -84,6 +84,28 @@ mee_install() {

create_bin_wrapper ipython3
create_bin_wrapper meson

create_bin_wrapper idle idle3
create_bin_wrapper pydoc pydoc3
create_bin_wrapper python python3
create_bin_wrapper python-config python3-config

for cmd in \
ipython \
jupyter \
htseq-count \
htseq-qa \
umi_tools \
rst2html.py rst2html4.py rst2html5.py \
rst2latex.py rst2xetex.py \
rst2man.py \
rst2odt.py rst2odt_prepstyles.py \
rst2pseudoxml.py rst2xml.py \
rst2s5.py \
rstpep2html.py
do
ln "$B/wrapper" "$D$BINDIR/$cmd"
done
}
## by default this may be 'make install DESTDIR="${D}"'

Expand Down