Skip to content

Commit

Permalink
update PyMiR
Browse files Browse the repository at this point in the history
  • Loading branch information
ivam3 committed Aug 29, 2024
1 parent a95bde2 commit 5155c91
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .deb/home/.local/libexec/PyMiR
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ IFS=$'\n\t'
ctrl_c(){ printf "$Y\n [¿] Need a help [?]$B\nTelegram : t.me/Ivam3_Bot$W\n";}

#:: VARIABLES ::#
IFS=$'\n\t'
iHDB="https://raw.githubusercontent.com/ivam3/i-Haklab/master/.set"
IbyCDB="https://raw.githubusercontent.com/ivam3/ivam3.github.io/master/master/installer"
LIBPY=$(find ${PREFIX}/lib/ -maxdepth 1 -type d -name "python3*")
G=`echo -en "\e[32m"`
R='\033[1;31m'
Y='\033[1;33m'
Expand Down Expand Up @@ -50,7 +50,7 @@ usage() {
#::::: REQUERIMENTS :::::#
Requirements(){
printf "$G\n(➤_)$W Installing requirements (It could take a while)...\n"
for req in build-essential python python-pip python2 curl tar wget ruby clang make nodejs pkg-config \
for req in build-essential python python-pip python2 curl tar wget ruby clang make cmake nodejs pkg-config \
openblas libgmp libmpc libmpc-static libmpfr libtool libxml2 libxml2-static libxml2-utils \
libxslt libxslt-static libsodium libsodium-static libjpeg-turbo libpng libzmq
do
Expand All @@ -60,6 +60,7 @@ Requirements(){
done
printf "$G(➤_)$W Upgrading pip ...\n"
# $py -m pip --no-color --quiet --no-cache-dir install --upgrade pip 2>/dev/null
yes|apt reinstall python-pip >/dev/null 2>/dev/null
$py -m pip --no-color --quiet --no-cache-dir install wheel 2>/dev/null
}

Expand Down Expand Up @@ -111,6 +112,18 @@ for module in $(cat ${TMPDIR}/requirements.tmp);do
}
pkg install $module >/dev/null 2>/dev/null
;;
jupyter)
echo "AQUI" ;read enter
sysconf="$(find $LIBPY -name "_sysconfigdata*.py")"
yes|pkg install clang binutils maturin pyzmq patchelf
rm -rf $LIBPY/__pycache__
cp "$sysconf" "$sysconf".O
sed -i 's|-fno-openmp-implicit-rpath||g' "$sysconf"
$py -m pip --no-color --quiet --no-cache-dir install jupyter 2>/dev/null
patchelf --add-needed libpython3.11.so $LIBPY/site-packages/zmq/backend/cython/_zmq.cpython-311.so
pkg install -y matplotlib >/dev/null 2>/dev/null
yes|apt purge rust >/dev/null 2>/dev/null
;;
*)
case ${instaType} in
B|BASIC|Basic|basic)
Expand Down

0 comments on commit 5155c91

Please sign in to comment.