Files
sysconfig/nuance/python.csh
luk 9742f6dab2 refactor: 脚本及配置文件命名统一用 _ 分隔
将 .sh/.bat 脚本与 .js/.plist/.Dockerfile 等文件中以 - 分隔的文件名
改为 _ 分隔,dcloud-renew 目录改为 dcloud、script_nuance 目录改为
nuance,并同步更新脚本内部引用与 README 路径。

Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
2026-08-25 15:11:50 +08:00

30 lines
920 B
Tcsh

#!/bin/csh
source ~/bin/platform.csh
#if ( "$1" == '' ) then
# echo "Which Python?"
# echo -n "Please enter a Python version, e.g. 2.4: "
# set selection=$<
#else
# set selection=$1
#endif
echo "Currently only Python 2.4 is supported."
echo "Assume Python 2.4"
set selection='2.4'
# todo: check existence of osr installation!
if ( $PLATFORM == 'aachen_windows' ) then
echo "Python $selection is unavailable on Aachen Windows."
else if ( $PLATFORM == 'aachen_linux' ) then
source ~/bin/addpath.csh /usr/localbin/python$selection/bin
echo "Python $selection was successfully configured on on Aachen Linux."
else if ( $PLATFORM == 'burlington_linux' ) then
echo "Python $selection is unavailable on Burlington Linux."
else if ( "$PLATFORM" == 'home_windows' ) then
echo "Python $selection is unavailable on Home Windows."
else
echo "Unknown system! Nothing was configured."
endif