Skip to content

Commit 7eafa3b

Browse files
committed
Add [de]activate scripts
to workaround cbcrg/tcoffee#27
1 parent c5e5e25 commit 7eafa3b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

recipes/t-coffee/activate.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
export MAX_N_PID_4_TCOFFEE=$(cat /proc/sys/kernel/pid_max)

recipes/t-coffee/build.sh

+8
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ make CC=$CXX CFLAGS="$CFLAGS"
1515
# install tcoffee in the target bin directory
1616
mkdir -p $PREFIX/bin
1717
cp t_coffee $PREFIX/bin
18+
19+
# Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d.
20+
# This will allow them to be run on environment activation.
21+
for CHANGE in "activate" "deactivate"
22+
do
23+
mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d"
24+
cp "${RECIPE_DIR}/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh"
25+
done

recipes/t-coffee/deactivate.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
unset MAX_N_PID_4_TCOFFEE

0 commit comments

Comments
 (0)