Test activation occurs correctly normally
Make sure that activation works without running the activation script.
Also test the activation script works as expected when run explicitly.
@@ -40,10 +40,11 @@ outputs:
- test -f "${PREFIX}/etc/conda/{{ state }}.d/{{ PKG_NAME }}_{{ state }}.sh"
{% endfor %}
# Try using the activation scripts.
- - source ${PREFIX}/etc/conda/activate.d/{{ PKG_NAME }}_activate.sh
- if [ -z ${CUDA_HOME+x} ]; then echo "CUDA_HOME is unset after activation" && exit 1; else echo "CUDA_HOME is set to '$CUDA_HOME'"; fi
- source ${PREFIX}/etc/conda/deactivate.d/{{ PKG_NAME }}_deactivate.sh
- if [ -z ${CUDA_HOME+x} ]; then echo "CUDA_HOME is unset after deactivation "; else echo "CUDA_HOME is set to '$CUDA_HOME' after deactivation" && exit 1; fi
+ - source ${PREFIX}/etc/conda/activate.d/{{ PKG_NAME }}_activate.sh
+ - if [ -z ${CUDA_HOME+x} ]; then echo "CUDA_HOME is unset after activation" && exit 1; else echo "CUDA_HOME is set to '$CUDA_HOME'"; fi
# Try building something.
- source ${PREFIX}/etc/conda/activate.d/{{ PKG_NAME }}_activate.sh
- nvcc test.cu
