Tso PyOxidizer rau ntim Python tej yaam num rau hauv nws tus kheej executables

Xa los ntawm thawj qhov kev tso tawm ntawm kev siv hluav taws xob PyOxidizer, uas tso cai rau koj ntim ib qhov project hauv Python rau hauv daim ntawv ntawm tus kheej-muaj cov ntaub ntawv ua tiav, suav nrog tus neeg txhais lus Python thiab tag nrho cov tsev qiv ntawv thiab cov peev txheej tsim nyog rau kev ua haujlwm. Cov ntaub ntawv zoo li no tuaj yeem raug tua hauv ib puag ncig yam tsis muaj Python tooling ntsia lossis tsis hais qhov xav tau ntawm Python version. PyOxidizer tseem tuaj yeem tsim cov ntaub ntawv txuas nrog cov ntaub ntawv ua tau zoo uas tsis txuas rau cov tsev qiv ntawv kaw lus. Qhov project code yog sau nyob rau hauv Rust thiab faib los ntawm muaj ntawv tso cai raws li MPL (Mozilla Public License) 2.0.

Qhov project yog ua raws li Rust lus module ntawm tib lub npe, uas tso cai rau koj los kos tus neeg txhais lus Python rau hauv Rust cov kev pab cuam los khiav Python scripts hauv lawv. PyOxidizer tam sim no tau dhau mus dhau los ua Rust add-on thiab tau muab tso ua ib lub cuab yeej rau kev tsim thiab faib cov pob Python tus kheej rau cov neeg tuaj saib dav dua. Rau cov neeg uas tsis tas yuav faib cov ntawv thov ua cov ntaub ntawv ua tiav, PyOxidizer muab lub peev xwm los tsim cov tsev qiv ntawv tsim nyog rau kev txuas nrog txhua daim ntawv thov los kos tus neeg txhais lus Python thiab cov txheej txheem txuas ntxiv tsim nyog.

Rau cov neeg siv kawg, xa cov phiaj xwm ua ib cov ntaub ntawv ua tau zoo heev ua kom yooj yim rau kev teeb tsa thiab tshem tawm kev ua haujlwm ntawm kev xaiv kev vam khom, uas yog qhov tseem ceeb, piv txwv li, rau cov haujlwm Python nyuaj xws li video editors. Rau cov neeg tsim daim ntawv thov, PyOxidizer tso cai rau koj kom txuag lub sijhawm teeb tsa daim ntawv thov xa tuaj, tsis tas yuav siv cov cuab yeej sib txawv los tsim cov pob khoom rau kev ua haujlwm sib txawv.

Kev siv cov rooj sib tham uas tau hais tseg kuj tseem muaj txiaj ntsig zoo rau kev ua haujlwm - cov ntaub ntawv tsim tawm hauv PyOxidizer khiav nrawm dua thaum siv cov kab ke Python vim kev tshem tawm ntawm kev xa khoom thiab txhais cov qauv hauv paus. Hauv PyOxidizer, modules raug xa tawm los ntawm lub cim xeeb - tag nrho cov modules built-in tau thauj khoom tam sim ntawd rau hauv lub cim xeeb thiab tom qab ntawd siv yam tsis siv disk). Hauv kev sim, daim ntawv thov pib lub sijhawm thaum siv PyOxidizer raug txo los ntawm kwv yees li ib nrab.

Ntawm cov haujlwm uas twb muaj lawm, cov hauv qab no tuaj yeem raug sau tseg: PyInstaller (unpacks cov ntaub ntawv rau hauv ib ntus directory thiab imports modules los ntawm nws), py2exe ua (kho rau lub Windows platform thiab xav tau ntau cov ntaub ntawv los faib), py2 ua (kho rau macOS), cx-qeb (yuav tsum tau ntim cov khoom sib cais), Shiv ΠΈ PEX (tsim ib pob hauv zip hom thiab xav tau Python ntawm qhov system), Nuitka (compiles code es embedding tus neeg txhais lus), pynsist (tied rau Windows) PyRun (kev txhim kho tus kheej yam tsis tau piav qhia txog cov qauv kev khiav haujlwm).

Nyob rau theem tam sim no ntawm kev txhim kho, PyOxidizer twb tau siv lub luag haujlwm tseem ceeb rau kev tsim cov ntaub ntawv ua tiav rau Windows, macOS thiab Linux. Los ntawm cov sijhawm tsis muaj tam sim no sau tseg tsis muaj tus qauv tsim ib puag ncig, tsis muaj peev xwm tsim cov pob hauv MSI, DMG thiab deb / rpm hom, teeb meem nrog cov phiaj xwm ntim khoom uas suav nrog kev txuas ntxiv nyuaj hauv C lus, tsis muaj cov lus txib los txhawb nqa ("pyoxidizer ntxiv", "pyoxidizer analyze" thiab "pyoxidizer upgrade"), txwv kev txhawb nqa rau Terminfo thiab Readline, tsis muaj kev txhawb nqa rau kev tshaj tawm uas tsis yog Python 3.7, tsis muaj kev txhawb nqa rau cov peev txheej compression, tsis muaj peev xwm sib sau ua ke.

Tau qhov twg los: opennet.ru

Ntxiv ib saib