Download deepseek/bin/python3.10-config from ZTWHHH/envs_1: direct link, hf CLI and curl.
- Browser
- Download file 3.47 kB
-
https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/deepseek/bin/python3.10-config
- Command line
-
hf download hf://datasets/ZTWHHH/envs_1/deepseek/bin/python3.10-config
-
curl -L -o python3.10-config https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/deepseek/bin/python3.10-config
3.47 kB
| #!/bin/sh | |
| # Keep this script in sync with python-config.in | |
| exit_with_usage () | |
| { | |
| echo "Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed" | |
| exit $1 | |
| } | |
| if [ "$1" = "" ] ; then | |
| exit_with_usage 1 | |
| fi | |
| # Returns the actual prefix where this script was installed to. | |
| installed_prefix () | |
| { | |
| RESULT=$(dirname $(cd $(dirname "$1") && pwd -P)) | |
| if which readlink >/dev/null 2>&1 ; then | |
| if readlink -f "$RESULT" >/dev/null 2>&1; then | |
| RESULT=$(readlink -f "$RESULT") | |
| fi | |
| fi | |
| echo $RESULT | |
| } | |
| prefix_real=$(installed_prefix "$0") | |
| # Use sed to fix paths from their built-to locations to their installed-to | |
| # locations. Keep prefix & exec_prefix using their original values in case | |
| # they are referenced in other configure variables, to prevent double | |
| # substitution, issue #22140. | |
| prefix="/root/envs/deepseek" | |
| exec_prefix="${prefix}" | |
| exec_prefix_real=${prefix_real} | |
| includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#") | |
| libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#") | |
| CFLAGS=$(echo "-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -ffunction-sections -pipe -isystem /root/envs/deepseek/include -fdebug-prefix-map=/croot/python-split_1733933809325/work=/usr/local/src/conda/python-3.10.16 -fdebug-prefix-map=/root/envs/deepseek=/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto" | sed "s#$prefix#$prefix_real#") | |
| VERSION="3.10" | |
| LIBM="-lm" | |
| LIBC="" | |
| SYSLIBS="$LIBM $LIBC" | |
| ABIFLAGS="" | |
| LIBS=" -lcrypt -lpthread -ldl -lutil -lm $SYSLIBS" | |
| LIBS_EMBED="-lpython${VERSION}${ABIFLAGS} -lcrypt -lpthread -ldl -lutil -lm $SYSLIBS" | |
| BASECFLAGS=" -Wno-unused-result -Wsign-compare" | |
| LDLIBRARY="libpython${VERSION}${ABIFLAGS}.a" | |
| OPT="-DNDEBUG -fwrapv -O3 -Wall" | |
| PY_ENABLE_SHARED="0" | |
| LDVERSION="${VERSION}${ABIFLAGS}" | |
| LIBDEST=${prefix_real}/lib/python${VERSION} | |
| LIBPL=$(echo "${prefix}/lib/python3.10/config-${VERSION}${ABIFLAGS}-x86_64-linux-gnu" | sed "s#$prefix#$prefix_real#") | |
| SO=".cpython-310-x86_64-linux-gnu.so" | |
| PYTHONFRAMEWORK="" | |
| INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}" | |
| PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}" | |
| PY_EMBED=0 | |
| # Scan for --help or unknown argument. | |
| for ARG in $* | |
| do | |
| case $ARG in | |
| --help) | |
| exit_with_usage 0 | |
| ;; | |
| --embed) | |
| PY_EMBED=1 | |
| ;; | |
| --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir) | |
| ;; | |
| *) | |
| exit_with_usage 1 | |
| ;; | |
| esac | |
| done | |
| if [ $PY_EMBED = 1 ] ; then | |
| LIBS="$LIBS_EMBED" | |
| fi | |
| for ARG in "$@" | |
| do | |
| case "$ARG" in | |
| --prefix) | |
| echo "$prefix_real" | |
| ;; | |
| --exec-prefix) | |
| echo "$exec_prefix_real" | |
| ;; | |
| --includes) | |
| echo "$INCDIR $PLATINCDIR" | |
| ;; | |
| --cflags) | |
| echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT" | |
| ;; | |
| --libs) | |
| echo "$LIBS" | |
| ;; | |
| --ldflags) | |
| LIBPLUSED= | |
| if [ "$PY_ENABLE_SHARED" = "0" ] ; then | |
| LIBPLUSED="-L$LIBPL" | |
| fi | |
| echo "$LIBPLUSED -L$libdir $LIBS" | |
| ;; | |
| --extension-suffix) | |
| echo "$SO" | |
| ;; | |
| --abiflags) | |
| echo "$ABIFLAGS" | |
| ;; | |
| --configdir) | |
| echo "$LIBPL" | |
| ;; | |
| esac | |
| done | |