Spaces:
Runtime error
Runtime error
rishabh5752
commited on
Commit
β’
edd1ad2
1
Parent(s):
db71af7
Upload 78 files
Browse filesThis view is limited to 50 files because it contains too many changes. Β
See raw diff
- Scripts/activate +87 -0
- Scripts/activate.bat +38 -0
- Scripts/activate.fish +103 -0
- Scripts/activate.nu +96 -0
- Scripts/activate.ps1 +61 -0
- Scripts/activate_this.py +36 -0
- Scripts/chainlit.exe +0 -0
- Scripts/ddgs.exe +0 -0
- Scripts/deactivate.bat +18 -0
- Scripts/dotenv.exe +0 -0
- Scripts/estimator_ckpt_converter.exe +0 -0
- Scripts/f2py.exe +0 -0
- Scripts/filetype.exe +0 -0
- Scripts/fonttools.exe +0 -0
- Scripts/google-oauthlib-tool.exe +0 -0
- Scripts/gradio.exe +0 -0
- Scripts/httpx.exe +0 -0
- Scripts/huggingface-cli.exe +0 -0
- Scripts/import_pb_to_tensorboard.exe +0 -0
- Scripts/jsonschema.exe +0 -0
- Scripts/langchain-server.exe +0 -0
- Scripts/langsmith.exe +0 -0
- Scripts/markdown_py.exe +0 -0
- Scripts/nodeenv.exe +0 -0
- Scripts/normalizer.exe +0 -0
- Scripts/openai.exe +0 -0
- Scripts/opentelemetry-bootstrap.exe +0 -0
- Scripts/opentelemetry-instrument.exe +0 -0
- Scripts/pip-3.11.exe +0 -0
- Scripts/pip.exe +0 -0
- Scripts/pip3.11.exe +0 -0
- Scripts/pip3.exe +0 -0
- Scripts/prisma-client-py.exe +0 -0
- Scripts/prisma.exe +0 -0
- Scripts/pydoc.bat +1 -0
- Scripts/pyftmerge.exe +0 -0
- Scripts/pyftsubset.exe +0 -0
- Scripts/pyrsa-decrypt.exe +0 -0
- Scripts/pyrsa-encrypt.exe +0 -0
- Scripts/pyrsa-keygen.exe +0 -0
- Scripts/pyrsa-priv2pub.exe +0 -0
- Scripts/pyrsa-sign.exe +0 -0
- Scripts/pyrsa-verify.exe +0 -0
- Scripts/python.exe +0 -0
- Scripts/pythonw.exe +0 -0
- Scripts/saved_model_cli.exe +0 -0
- Scripts/tensorboard.exe +0 -0
- Scripts/tf_upgrade_v2.exe +0 -0
- Scripts/tflite_convert.exe +0 -0
- Scripts/toco.exe +0 -0
Scripts/activate
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used with "source bin/activate" *from bash*
|
2 |
+
# you cannot run it directly
|
3 |
+
|
4 |
+
|
5 |
+
if [ "${BASH_SOURCE-}" = "$0" ]; then
|
6 |
+
echo "You must source this script: \$ source $0" >&2
|
7 |
+
exit 33
|
8 |
+
fi
|
9 |
+
|
10 |
+
deactivate () {
|
11 |
+
unset -f pydoc >/dev/null 2>&1 || true
|
12 |
+
|
13 |
+
# reset old environment variables
|
14 |
+
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
|
15 |
+
if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then
|
16 |
+
PATH="$_OLD_VIRTUAL_PATH"
|
17 |
+
export PATH
|
18 |
+
unset _OLD_VIRTUAL_PATH
|
19 |
+
fi
|
20 |
+
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
|
21 |
+
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
|
22 |
+
export PYTHONHOME
|
23 |
+
unset _OLD_VIRTUAL_PYTHONHOME
|
24 |
+
fi
|
25 |
+
|
26 |
+
# The hash command must be called to get it to forget past
|
27 |
+
# commands. Without forgetting past commands the $PATH changes
|
28 |
+
# we made may not be respected
|
29 |
+
hash -r 2>/dev/null
|
30 |
+
|
31 |
+
if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
|
32 |
+
PS1="$_OLD_VIRTUAL_PS1"
|
33 |
+
export PS1
|
34 |
+
unset _OLD_VIRTUAL_PS1
|
35 |
+
fi
|
36 |
+
|
37 |
+
unset VIRTUAL_ENV
|
38 |
+
unset VIRTUAL_ENV_PROMPT
|
39 |
+
if [ ! "${1-}" = "nondestructive" ] ; then
|
40 |
+
# Self destruct!
|
41 |
+
unset -f deactivate
|
42 |
+
fi
|
43 |
+
}
|
44 |
+
|
45 |
+
# unset irrelevant variables
|
46 |
+
deactivate nondestructive
|
47 |
+
|
48 |
+
VIRTUAL_ENV='C:\Users\sakro\OneDrive\Documents\llm_tut\chainlit'
|
49 |
+
if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then
|
50 |
+
VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV")
|
51 |
+
fi
|
52 |
+
export VIRTUAL_ENV
|
53 |
+
|
54 |
+
_OLD_VIRTUAL_PATH="$PATH"
|
55 |
+
PATH="$VIRTUAL_ENV/Scripts:$PATH"
|
56 |
+
export PATH
|
57 |
+
|
58 |
+
if [ "x" != x ] ; then
|
59 |
+
VIRTUAL_ENV_PROMPT=""
|
60 |
+
else
|
61 |
+
VIRTUAL_ENV_PROMPT=$(basename "$VIRTUAL_ENV")
|
62 |
+
fi
|
63 |
+
export VIRTUAL_ENV_PROMPT
|
64 |
+
|
65 |
+
# unset PYTHONHOME if set
|
66 |
+
if ! [ -z "${PYTHONHOME+_}" ] ; then
|
67 |
+
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
|
68 |
+
unset PYTHONHOME
|
69 |
+
fi
|
70 |
+
|
71 |
+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
|
72 |
+
_OLD_VIRTUAL_PS1="${PS1-}"
|
73 |
+
PS1="(${VIRTUAL_ENV_PROMPT}) ${PS1-}"
|
74 |
+
export PS1
|
75 |
+
fi
|
76 |
+
|
77 |
+
# Make sure to unalias pydoc if it's already there
|
78 |
+
alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true
|
79 |
+
|
80 |
+
pydoc () {
|
81 |
+
python -m pydoc "$@"
|
82 |
+
}
|
83 |
+
|
84 |
+
# The hash command must be called to get it to forget past
|
85 |
+
# commands. Without forgetting past commands the $PATH changes
|
86 |
+
# we made may not be respected
|
87 |
+
hash -r 2>/dev/null
|
Scripts/activate.bat
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@set "VIRTUAL_ENV=C:\Users\sakro\OneDrive\Documents\llm_tut\chainlit"
|
2 |
+
|
3 |
+
@set "VIRTUAL_ENV_PROMPT="
|
4 |
+
@if NOT DEFINED VIRTUAL_ENV_PROMPT (
|
5 |
+
@for %%d in ("%VIRTUAL_ENV%") do @set "VIRTUAL_ENV_PROMPT=%%~nxd"
|
6 |
+
)
|
7 |
+
|
8 |
+
@if defined _OLD_VIRTUAL_PROMPT (
|
9 |
+
@set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
10 |
+
) else (
|
11 |
+
@if not defined PROMPT (
|
12 |
+
@set "PROMPT=$P$G"
|
13 |
+
)
|
14 |
+
@if not defined VIRTUAL_ENV_DISABLE_PROMPT (
|
15 |
+
@set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
|
16 |
+
)
|
17 |
+
)
|
18 |
+
@if not defined VIRTUAL_ENV_DISABLE_PROMPT (
|
19 |
+
@set "PROMPT=(%VIRTUAL_ENV_PROMPT%) %PROMPT%"
|
20 |
+
)
|
21 |
+
|
22 |
+
@REM Don't use () to avoid problems with them in %PATH%
|
23 |
+
@if defined _OLD_VIRTUAL_PYTHONHOME @goto ENDIFVHOME
|
24 |
+
@set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
|
25 |
+
:ENDIFVHOME
|
26 |
+
|
27 |
+
@set PYTHONHOME=
|
28 |
+
|
29 |
+
@REM if defined _OLD_VIRTUAL_PATH (
|
30 |
+
@if not defined _OLD_VIRTUAL_PATH @goto ENDIFVPATH1
|
31 |
+
@set "PATH=%_OLD_VIRTUAL_PATH%"
|
32 |
+
:ENDIFVPATH1
|
33 |
+
@REM ) else (
|
34 |
+
@if defined _OLD_VIRTUAL_PATH @goto ENDIFVPATH2
|
35 |
+
@set "_OLD_VIRTUAL_PATH=%PATH%"
|
36 |
+
:ENDIFVPATH2
|
37 |
+
|
38 |
+
@set "PATH=%VIRTUAL_ENV%\Scripts;%PATH%"
|
Scripts/activate.fish
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used using `source bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
|
2 |
+
# Do not run it directly.
|
3 |
+
|
4 |
+
function _bashify_path -d "Converts a fish path to something bash can recognize"
|
5 |
+
set fishy_path $argv
|
6 |
+
set bashy_path $fishy_path[1]
|
7 |
+
for path_part in $fishy_path[2..-1]
|
8 |
+
set bashy_path "$bashy_path:$path_part"
|
9 |
+
end
|
10 |
+
echo $bashy_path
|
11 |
+
end
|
12 |
+
|
13 |
+
function _fishify_path -d "Converts a bash path to something fish can recognize"
|
14 |
+
echo $argv | tr ':' '\n'
|
15 |
+
end
|
16 |
+
|
17 |
+
function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
|
18 |
+
# reset old environment variables
|
19 |
+
if test -n "$_OLD_VIRTUAL_PATH"
|
20 |
+
# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
|
21 |
+
if test (echo $FISH_VERSION | head -c 1) -lt 3
|
22 |
+
set -gx PATH (_fishify_path "$_OLD_VIRTUAL_PATH")
|
23 |
+
else
|
24 |
+
set -gx PATH $_OLD_VIRTUAL_PATH
|
25 |
+
end
|
26 |
+
set -e _OLD_VIRTUAL_PATH
|
27 |
+
end
|
28 |
+
|
29 |
+
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
|
30 |
+
set -gx PYTHONHOME "$_OLD_VIRTUAL_PYTHONHOME"
|
31 |
+
set -e _OLD_VIRTUAL_PYTHONHOME
|
32 |
+
end
|
33 |
+
|
34 |
+
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
|
35 |
+
and functions -q _old_fish_prompt
|
36 |
+
# Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
|
37 |
+
set -l fish_function_path
|
38 |
+
|
39 |
+
# Erase virtualenv's `fish_prompt` and restore the original.
|
40 |
+
functions -e fish_prompt
|
41 |
+
functions -c _old_fish_prompt fish_prompt
|
42 |
+
functions -e _old_fish_prompt
|
43 |
+
set -e _OLD_FISH_PROMPT_OVERRIDE
|
44 |
+
end
|
45 |
+
|
46 |
+
set -e VIRTUAL_ENV
|
47 |
+
set -e VIRTUAL_ENV_PROMPT
|
48 |
+
|
49 |
+
if test "$argv[1]" != 'nondestructive'
|
50 |
+
# Self-destruct!
|
51 |
+
functions -e pydoc
|
52 |
+
functions -e deactivate
|
53 |
+
functions -e _bashify_path
|
54 |
+
functions -e _fishify_path
|
55 |
+
end
|
56 |
+
end
|
57 |
+
|
58 |
+
# Unset irrelevant variables.
|
59 |
+
deactivate nondestructive
|
60 |
+
|
61 |
+
set -gx VIRTUAL_ENV 'C:\Users\sakro\OneDrive\Documents\llm_tut\chainlit'
|
62 |
+
|
63 |
+
# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
|
64 |
+
if test (echo $FISH_VERSION | head -c 1) -lt 3
|
65 |
+
set -gx _OLD_VIRTUAL_PATH (_bashify_path $PATH)
|
66 |
+
else
|
67 |
+
set -gx _OLD_VIRTUAL_PATH $PATH
|
68 |
+
end
|
69 |
+
set -gx PATH "$VIRTUAL_ENV"'/Scripts' $PATH
|
70 |
+
|
71 |
+
# Prompt override provided?
|
72 |
+
# If not, just use the environment name.
|
73 |
+
if test -n ''
|
74 |
+
set -gx VIRTUAL_ENV_PROMPT ''
|
75 |
+
else
|
76 |
+
set -gx VIRTUAL_ENV_PROMPT (basename "$VIRTUAL_ENV")
|
77 |
+
end
|
78 |
+
|
79 |
+
# Unset `$PYTHONHOME` if set.
|
80 |
+
if set -q PYTHONHOME
|
81 |
+
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
|
82 |
+
set -e PYTHONHOME
|
83 |
+
end
|
84 |
+
|
85 |
+
function pydoc
|
86 |
+
python -m pydoc $argv
|
87 |
+
end
|
88 |
+
|
89 |
+
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
|
90 |
+
# Copy the current `fish_prompt` function as `_old_fish_prompt`.
|
91 |
+
functions -c fish_prompt _old_fish_prompt
|
92 |
+
|
93 |
+
function fish_prompt
|
94 |
+
# Run the user's prompt first; it might depend on (pipe)status.
|
95 |
+
set -l prompt (_old_fish_prompt)
|
96 |
+
|
97 |
+
printf '(%s) ' $VIRTUAL_ENV_PROMPT
|
98 |
+
|
99 |
+
string join -- \n $prompt # handle multi-line prompts
|
100 |
+
end
|
101 |
+
|
102 |
+
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
|
103 |
+
end
|
Scripts/activate.nu
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# virtualenv activation module
|
2 |
+
# Activate with `overlay use activate.nu`
|
3 |
+
# Deactivate with `deactivate`, as usual
|
4 |
+
#
|
5 |
+
# To customize the overlay name, you can call `overlay use activate.nu as foo`,
|
6 |
+
# but then simply `deactivate` won't work because it is just an alias to hide
|
7 |
+
# the "activate" overlay. You'd need to call `overlay hide foo` manually.
|
8 |
+
|
9 |
+
export-env {
|
10 |
+
def is-string [x] {
|
11 |
+
($x | describe) == 'string'
|
12 |
+
}
|
13 |
+
|
14 |
+
def has-env [...names] {
|
15 |
+
$names | each {|n|
|
16 |
+
$n in $env
|
17 |
+
} | all {|i| $i == true}
|
18 |
+
}
|
19 |
+
|
20 |
+
# Emulates a `test -z`, but btter as it handles e.g 'false'
|
21 |
+
def is-env-true [name: string] {
|
22 |
+
if (has-env $name) {
|
23 |
+
# Try to parse 'true', '0', '1', and fail if not convertible
|
24 |
+
let parsed = (do -i { $env | get $name | into bool })
|
25 |
+
if ($parsed | describe) == 'bool' {
|
26 |
+
$parsed
|
27 |
+
} else {
|
28 |
+
not ($env | get -i $name | is-empty)
|
29 |
+
}
|
30 |
+
} else {
|
31 |
+
false
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
let virtual_env = 'C:\Users\sakro\OneDrive\Documents\llm_tut\chainlit'
|
36 |
+
let bin = 'Scripts'
|
37 |
+
|
38 |
+
let is_windows = ($nu.os-info.family) == 'windows'
|
39 |
+
let path_name = (if (has-env 'Path') {
|
40 |
+
'Path'
|
41 |
+
} else {
|
42 |
+
'PATH'
|
43 |
+
}
|
44 |
+
)
|
45 |
+
|
46 |
+
let venv_path = ([$virtual_env $bin] | path join)
|
47 |
+
let new_path = ($env | get $path_name | prepend $venv_path)
|
48 |
+
|
49 |
+
# If there is no default prompt, then use the env name instead
|
50 |
+
let virtual_env_prompt = (if ('' | is-empty) {
|
51 |
+
($virtual_env | path basename)
|
52 |
+
} else {
|
53 |
+
''
|
54 |
+
})
|
55 |
+
|
56 |
+
let new_env = {
|
57 |
+
$path_name : $new_path
|
58 |
+
VIRTUAL_ENV : $virtual_env
|
59 |
+
VIRTUAL_ENV_PROMPT : $virtual_env_prompt
|
60 |
+
}
|
61 |
+
|
62 |
+
let new_env = (if (is-env-true 'VIRTUAL_ENV_DISABLE_PROMPT') {
|
63 |
+
$new_env
|
64 |
+
} else {
|
65 |
+
# Creating the new prompt for the session
|
66 |
+
let virtual_prefix = $'(char lparen)($virtual_env_prompt)(char rparen) '
|
67 |
+
|
68 |
+
# Back up the old prompt builder
|
69 |
+
let old_prompt_command = (if (has-env 'PROMPT_COMMAND') {
|
70 |
+
$env.PROMPT_COMMAND
|
71 |
+
} else {
|
72 |
+
''
|
73 |
+
})
|
74 |
+
|
75 |
+
let new_prompt = (if (has-env 'PROMPT_COMMAND') {
|
76 |
+
if 'closure' in ($old_prompt_command | describe) {
|
77 |
+
{|| $'($virtual_prefix)(do $old_prompt_command)' }
|
78 |
+
} else {
|
79 |
+
{|| $'($virtual_prefix)($old_prompt_command)' }
|
80 |
+
}
|
81 |
+
} else {
|
82 |
+
{|| $'($virtual_prefix)' }
|
83 |
+
})
|
84 |
+
|
85 |
+
$new_env | merge {
|
86 |
+
PROMPT_COMMAND : $new_prompt
|
87 |
+
VIRTUAL_PREFIX : $virtual_prefix
|
88 |
+
}
|
89 |
+
})
|
90 |
+
|
91 |
+
# Environment variables that will be loaded as the virtual env
|
92 |
+
load-env $new_env
|
93 |
+
}
|
94 |
+
|
95 |
+
export alias pydoc = python -m pydoc
|
96 |
+
export alias deactivate = overlay hide activate
|
Scripts/activate.ps1
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$script:THIS_PATH = $myinvocation.mycommand.path
|
2 |
+
$script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent
|
3 |
+
|
4 |
+
function global:deactivate([switch] $NonDestructive) {
|
5 |
+
if (Test-Path variable:_OLD_VIRTUAL_PATH) {
|
6 |
+
$env:PATH = $variable:_OLD_VIRTUAL_PATH
|
7 |
+
Remove-Variable "_OLD_VIRTUAL_PATH" -Scope global
|
8 |
+
}
|
9 |
+
|
10 |
+
if (Test-Path function:_old_virtual_prompt) {
|
11 |
+
$function:prompt = $function:_old_virtual_prompt
|
12 |
+
Remove-Item function:\_old_virtual_prompt
|
13 |
+
}
|
14 |
+
|
15 |
+
if ($env:VIRTUAL_ENV) {
|
16 |
+
Remove-Item env:VIRTUAL_ENV -ErrorAction SilentlyContinue
|
17 |
+
}
|
18 |
+
|
19 |
+
if ($env:VIRTUAL_ENV_PROMPT) {
|
20 |
+
Remove-Item env:VIRTUAL_ENV_PROMPT -ErrorAction SilentlyContinue
|
21 |
+
}
|
22 |
+
|
23 |
+
if (!$NonDestructive) {
|
24 |
+
# Self destruct!
|
25 |
+
Remove-Item function:deactivate
|
26 |
+
Remove-Item function:pydoc
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
function global:pydoc {
|
31 |
+
python -m pydoc $args
|
32 |
+
}
|
33 |
+
|
34 |
+
# unset irrelevant variables
|
35 |
+
deactivate -nondestructive
|
36 |
+
|
37 |
+
$VIRTUAL_ENV = $BASE_DIR
|
38 |
+
$env:VIRTUAL_ENV = $VIRTUAL_ENV
|
39 |
+
|
40 |
+
if ("" -ne "") {
|
41 |
+
$env:VIRTUAL_ENV_PROMPT = ""
|
42 |
+
}
|
43 |
+
else {
|
44 |
+
$env:VIRTUAL_ENV_PROMPT = $( Split-Path $env:VIRTUAL_ENV -Leaf )
|
45 |
+
}
|
46 |
+
|
47 |
+
New-Variable -Scope global -Name _OLD_VIRTUAL_PATH -Value $env:PATH
|
48 |
+
|
49 |
+
$env:PATH = "$env:VIRTUAL_ENV/Scripts;" + $env:PATH
|
50 |
+
if (!$env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
51 |
+
function global:_old_virtual_prompt {
|
52 |
+
""
|
53 |
+
}
|
54 |
+
$function:_old_virtual_prompt = $function:prompt
|
55 |
+
|
56 |
+
function global:prompt {
|
57 |
+
# Add the custom prefix to the existing prompt
|
58 |
+
$previous_prompt_value = & $function:_old_virtual_prompt
|
59 |
+
("(" + $env:VIRTUAL_ENV_PROMPT + ") " + $previous_prompt_value)
|
60 |
+
}
|
61 |
+
}
|
Scripts/activate_this.py
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Activate virtualenv for current interpreter:
|
3 |
+
|
4 |
+
Use exec(open(this_file).read(), {'__file__': this_file}).
|
5 |
+
|
6 |
+
This can be used when you must use an existing Python interpreter, not the virtualenv bin/python.
|
7 |
+
""" # noqa: D415
|
8 |
+
from __future__ import annotations
|
9 |
+
|
10 |
+
import os
|
11 |
+
import site
|
12 |
+
import sys
|
13 |
+
|
14 |
+
try:
|
15 |
+
abs_file = os.path.abspath(__file__)
|
16 |
+
except NameError as exc:
|
17 |
+
msg = "You must use exec(open(this_file).read(), {'__file__': this_file}))"
|
18 |
+
raise AssertionError(msg) from exc
|
19 |
+
|
20 |
+
bin_dir = os.path.dirname(abs_file)
|
21 |
+
base = bin_dir[: -len("Scripts") - 1] # strip away the bin part from the __file__, plus the path separator
|
22 |
+
|
23 |
+
# prepend bin to PATH (this file is inside the bin directory)
|
24 |
+
os.environ["PATH"] = os.pathsep.join([bin_dir, *os.environ.get("PATH", "").split(os.pathsep)])
|
25 |
+
os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory
|
26 |
+
os.environ["VIRTUAL_ENV_PROMPT"] = "" or os.path.basename(base) # noqa: SIM222
|
27 |
+
|
28 |
+
# add the virtual environments libraries to the host python import mechanism
|
29 |
+
prev_length = len(sys.path)
|
30 |
+
for lib in "..\\Lib\\site-packages".split(os.pathsep):
|
31 |
+
path = os.path.realpath(os.path.join(bin_dir, lib))
|
32 |
+
site.addsitedir(path.decode("utf-8") if "" else path)
|
33 |
+
sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]
|
34 |
+
|
35 |
+
sys.real_prefix = sys.prefix
|
36 |
+
sys.prefix = base
|
Scripts/chainlit.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/ddgs.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/deactivate.bat
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@set VIRTUAL_ENV=
|
2 |
+
@set VIRTUAL_ENV_PROMPT=
|
3 |
+
|
4 |
+
@REM Don't use () to avoid problems with them in %PATH%
|
5 |
+
@if not defined _OLD_VIRTUAL_PROMPT @goto ENDIFVPROMPT
|
6 |
+
@set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
7 |
+
@set _OLD_VIRTUAL_PROMPT=
|
8 |
+
:ENDIFVPROMPT
|
9 |
+
|
10 |
+
@if not defined _OLD_VIRTUAL_PYTHONHOME @goto ENDIFVHOME
|
11 |
+
@set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
|
12 |
+
@set _OLD_VIRTUAL_PYTHONHOME=
|
13 |
+
:ENDIFVHOME
|
14 |
+
|
15 |
+
@if not defined _OLD_VIRTUAL_PATH @goto ENDIFVPATH
|
16 |
+
@set "PATH=%_OLD_VIRTUAL_PATH%"
|
17 |
+
@set _OLD_VIRTUAL_PATH=
|
18 |
+
:ENDIFVPATH
|
Scripts/dotenv.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/estimator_ckpt_converter.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/f2py.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/filetype.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/fonttools.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/google-oauthlib-tool.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/gradio.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/httpx.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/huggingface-cli.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/import_pb_to_tensorboard.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/jsonschema.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/langchain-server.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/langsmith.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/markdown_py.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/nodeenv.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/normalizer.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/openai.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/opentelemetry-bootstrap.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/opentelemetry-instrument.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pip-3.11.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pip.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pip3.11.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pip3.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/prisma-client-py.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/prisma.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pydoc.bat
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
python.exe -m pydoc %*
|
Scripts/pyftmerge.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pyftsubset.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pyrsa-decrypt.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pyrsa-encrypt.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pyrsa-keygen.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pyrsa-priv2pub.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pyrsa-sign.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/pyrsa-verify.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/python.exe
ADDED
Binary file (271 kB). View file
|
|
Scripts/pythonw.exe
ADDED
Binary file (259 kB). View file
|
|
Scripts/saved_model_cli.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/tensorboard.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/tf_upgrade_v2.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/tflite_convert.exe
ADDED
Binary file (108 kB). View file
|
|
Scripts/toco.exe
ADDED
Binary file (108 kB). View file
|
|