python源码编译参数

`configure’ configures python 3.7 to adapt to many kinds of systems.

Usage: ./configure [OPTION]… [VAR=VALUE]…

To assign environment variables (e.g., CC, CFLAGS…), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:

参数说明
–prefix=PREFIXinstall architecture-independent files in PREFIX [/usr/local]
–exec-prefix=EPREFIXinstall architecture-dependent files in EPREFIX [PREFIX]
–bindir=DIRuser executables [EPREFIX/bin]
–sbindir=DIRsystem admin executables [EPREFIX/sbin]
–libexecdir=DIRprogram executables [EPREFIX/libexec]
–sysconfdir=DIRread-only single-machine data [PREFIX/etc]
–sharedstatedir=DIRmodifiable architecture-independent data [PREFIX/com]
–localstatedir=DIRmodifiable single-machine data [PREFIX/var]
–libdir=DIRobject code libraries [EPREFIX/lib]
–includedir=DIRC header files [PREFIX/include]
–oldincludedir=DIRC header files for non-gcc [/usr/include]
–datarootdir=DIRread-only arch.-independent data root [PREFIX/share]
–datadir=DIRread-only architecture-independent data [DATAROOTDIR]
–infodir=DIRinfo documentation [DATAROOTDIR/info]
–localedir=DIRlocale-dependent data [DATAROOTDIR/locale]
–mandir=DIRman documentation [DATAROOTDIR/man]
–docdir=DIRdocumentation root [DATAROOTDIR/doc/python]
–htmldir=DIRhtml documentation [DOCDIR]
–dvidir=DIRdvi documentation [DOCDIR]
–pdfdir=DIRpdf documentation [DOCDIR]
–psdir=DIRps documentation [DOCDIR]
–build=BUILDconfigure for building on BUILD [guessed]
–host=HOSTcross-compile to build programs to run on HOST [BUILD]
–target=TARGETconfigure for building compilers for TARGET [HOST]
–disable-option-checkingignore unrecognized --enable/–with options
–disable-FEATUREdo not include FEATURE (same as --enable-FEATURE=no)
–enable-FEATURE[=ARG]include FEATURE [ARG=yes]
–enable-universalsdk[=SDKDIR]Build fat binary against Mac OS X SDK
–enable-framework[=INSTALLDIR]Build (MacOSX
–enable-shareddisable/enable building shared python library
–enable-profilingenable C-level code profiling
–enable-optimizationsEnable expensive, stable optimizations (PGO, etc).Disabled by default.
–enable-loadable-sqlite-extensionssupport loadable extensions in _sqlite module
–enable-ipv6Enable ipv6 (with ipv4) support
–disable-ipv6Disable ipv6 support
–enable-big-digits[=BITS]use big digits for Python longs [[BITS=30]]
–with-PACKAGE[=ARG]use PACKAGE [ARG=yes]
–without-PACKAGEdo not use PACKAGE (same as --with-PACKAGE=no)
–with-universal-archs=ARCHselect architectures for universal build (“32-bit”,“64-bit”, “3-way”, “intel”, “intel-32”, “intel-64”, or “all”)
–with-framework-name=FRAMEWORKspecify an alternate name of the framework built with --enable-framework
–without-gccnever use gcc
–with-iccbuild with icc
–with-cxx-main=compile main() and link python executable with C++ compiler
–with-suffix=.exeset executable suffix
–with-pydebugbuild with Py_DEBUG defined
–with-assertionsbuild with C assertions enabled
–with-ltoEnable Link Time Optimization in any build. Disabled by default.
–with-hash-algorithm=[fnvsiphash24]
–with-address-sanitizerenable AddressSanitizer (asan)
–with-memory-sanitizerenable MemorySanitizer (msan)
–with-undefined-behavior-sanitizerenable UndefinedBehaviorSanitizer (ubsan)
–with-libs=‘lib1 …’link against additional libs
–with-system-expatbuild pyexpat module using an installed expat library
–with-system-ffibuild _ctypes module using an installed ffi library
–with-system-libmpdecbuild _decimal module using an installed libmpdec library
–with-tcltk-includes=’-I…’override search for Tcl and Tk include files
–with-tcltk-libs=’-L…’override search for Tcl and Tk libs
–with-dbmliborder=db1:db2:…order to check db backends for dbm. Valid value is a colon separated string with the backend names ndbm',gdbm’ and `bdb’.
–with(out)-doc-stringsdisable/enable documentation strings
–with(out)-pymallocdisable/enable specialized mallocs
–with(out)-c-locale-coerciondisable/enable C locale coercion to a UTF-8 based locale
–with-valgrindEnable Valgrind support
–with(out)-dtracedisable/enable DTrace support
–with-libm=STRINGmath library
–with-libc=STRINGC library
–with(out)-computed-gotosUse computed gotos in evaluation loop (enabled by default on supported compilers)
–with(out)-ensurepip=[=upgrade]“install” or “upgrade” using bundled pip
–with-openssl=DIRroot of the OpenSSL directory
–with-ssl-default-suites=[pythonopenssl
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值