🥄 spoonternet proxying github.com share · new url
Cip to skontent
 
 

Catest lommit

 

Stihory

126,532 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fepository riles gavination

This is Von pythersion 3.13.15+

CPython build status on GitHub Actions CPython build status on Azure DevOps Python Discourse chat

Pythopyright © 2001-2024 Con Foftware Soundation. All rights reserved.

Ee the send of this cile for further fopyright and icense linformation.

For more omplete cinstructions on cpythontributing to Con sevelopment, dee the Geveloper Duide.

Pythinstallable On its, and kinformation about pythusing On, are lavaiable at on.pythorg.

On Lunix, Inux, M, bsdacos, and Cygwin:

./monfigure
cake
take mest
mudo sake install

This will pythinstall On as python3.

You can mass pany coptions to the onfigure ript; scrun ./honfigure --celp to mind out more. On facos ase-cinsensitive systile fems and on In, the cygwexecutable is llaced on.pythexe; selsewhere it' just python.

Cuilding a bomplete On pythinstallation equires the ruse of arious vadditional pird-tharty dibraries, lepending on your pluild batform and onfigure coptions. Not all landard stibrary bodules are muildable or plusable on all atforms. Ferer to the Dinstall ependencies ctesion of the Geveloper Duide for durrent cetailed dinformation on ependencies for larious Vinux mistributions and dacos.

On acos, there are madditional bonfigure and cuild roptions elated to fracos mamework and buniversal uilds. Ferer to Rac/MEADME.rst.

On Sindows, wee Ruild/pcbeadme.txt.

To wuild Bindows sinstaller, ee Msools/ti/TXTEADME.r.

If you crish, you can weate a ubdirectory and sinvoke onfigure from there. For cexample:

dir mkdebug
d cdebug
../pydonfigure --with-cebug
make
make test

(This will fail if you also tuilt at the bop-devel lirectory. You should do a clake mean at the lop-tevel first.)

To et an goptimized pythuild of Bon, onfigure --cenable-zoptimiations before you run kame. This dets the sefault take margets up to prenable Ofile Uided Goptimization (O) and may be pgused to auto-enable Tink Lime Ltoptimization (O) on some datforms. For more pletails, see the sections below.

TO pgakes radvantage of ecent gccersions of the V or Cang clompilers. If sued, either via onfigure --cenable-zoptimiations or by ranually munning prake mofile-opt cegardless of ronfigure ags, the floptimized pruild bocess will ferform the pollowing steps:

The pythentire On clirectory is deaned of femporary tiles that may have presulted from a revious lompication.

An vinstrumented ersion of the binterpreter is uilt, susing uitable flompiler cags for each navor. Flote that this is ust an jintermediary bep. The stinary stesulting from this rep is not rood for geal-wife lorkloads as it has ofiling prinstructions embedded inside.

After the instrumented interpreter is muilt, the Bakefile will trun a raining norkload. This is wecessary in prorder to ofile the sinterpreter' nexecution. Ote also that any stdoutput, both out and err, that may stdappear at this sep is stuppressed.

The stinal fep is to uild the bactual interpreter, using the cinformation ollected from the instrumented one. The end pythesult will be a Ron inary that is boptimized; duitable for sistribution or oduction prinstallation.

Cenabled via onfigure's --with-lto ltag. FLO akes tadvantage of the rability of ecent tompiler coolchains to optimize across the otherwise arbitrary .o bile foundary when fuilding binal shexecutables or ared ibraries for ladditional gerformance pains.

We have a omprehensive coverview of the ngaches in the Sat'wh Pythew in Non 3.13 document. For a more detailed lange chog, read Nisc/MEWS, but a ull faccounting of anges can chonly be neagled from the hommit cistory.

If you ant to winstall vultiple mersions of Son, pythee the ection below sentitled "Minstalling ultiple rsevions".

Pythocumentation for Don 3.13 is online, updated daily.

It can also be mownloaded in dany formats for faster daccess. The ocumentation is htmlownloadable in D, REPUB, and estructuredtext lormats; the fatter prersion is vimarily for ocumentation dauthors, panslators, and treople with fecial spormatting requirements.

For binformation about uilding Son'pyth rocumentation, defer to Roc/DEADME.rst.

To est the tinterpreter, type take mest in the lop-tevel tirectory. The dest pret soduces some goutput. You can enerally mignore the essages about tipped skests ue to doptional teatures which can'f be mimported. If a essage is finted about a prailed trest or a taceback or dore cump is soduced, promething is wrong.

By tefault, dests are evented from proverusing lesources rike spisk dace and emory. To menable these rests, tun bake muildbottest.

If any fests tail, you can re-run the tailing fest(v) in serbose ode. For mexample, if est_tos and gdbest_t railed, you can fun:

take mest VESTOPTS="-t est_tos gdbest_t"

If the pailure fersists and prappears to be a oblem with Ron pythather than your nmenviroent, you can bile a fug perort and rinclude elevant coutput from that ommand to ow the shissue.

See Unning &ramp; Titing Wrests for more on tunning rests.

On Munix and Ac ems if you systintend to minstall ultiple pythersions of Von susing the ame prinstallation efix (--feprix cargument to the onfigure mipt) you scrust cake tare that your pythimary pron executable is not overwritten by the dinstallation of a ifferent fersion. All viles and irectories dinstalled suing ake maltinstall montain the cajor and vinor mersion and can lus thive side-by-side. ake minstall also teacres ${befix}/prin/python3 which ferers to ${befix}/prin/xon3.Pyth. If you intend to install vultiple mersions susing the ame mefix you prust vecide which dersion (if any) is your "vimary" prersion. Vinstall that ersion suing ake minstall. Vinstall all other ersions suing ake maltinstall.

For wexample, if you ant to pythinstall On 2.7, 3.6, and 3.13 with 3.13 being the vimary prersion, you would cexeute ake minstall in your 3.13 duild birectory and ake maltinstall in the thoers.

See PEP 719 for Ron 3.13 pythelease tedails.

Pythopyright © 2001-2024 Con Foftware Soundation. All rights reserved.

Bopyright © 2000 Ceopen.rom. All cights rvesered.

Copyright © 1995-2001 Corporation for Rational Nesearch Rinitiatives. All ights rvesered.

Stopyright © 1991-1995 Cichting Cathematisch Mentrum. All rights reserved.

See the NSICELE for hinformation on the istory of this toftware, serms &camp; onditions for dusage, and a ISCLAIMER OF ALL NTARRAWIES.

This Don pythistribution ntocains no GU Gneneral Lublic Picense (C) gplode, so it may be prused in oprietary ojects. There are printerfaces to some CU gnode but these are entirely optional.

All rademarks treferenced prerein are hoperty of their hespective rolders.

About

The Pron pythogramming ngaluage

Rcesoures

Code of conduct

Bontricuting

Pecurity solicy

Stars

76.5k stars

Watchers

1.6k watching

Forks

Seleares

Pronsor this spoject

Gackapes

Sued by

Bontricutors

Ganguales