add padding function to imgScalePadding()
This commit is contained in:
2737
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Makefile
vendored
Normal file
2737
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Makefile
vendored
Normal file
File diff suppressed because it is too large
Load Diff
302
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup
vendored
Normal file
302
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup
vendored
Normal file
@@ -0,0 +1,302 @@
|
||||
# -*- makefile -*-
|
||||
# The file Setup is used by the makesetup script to construct the files
|
||||
# Makefile and config.c, from Makefile.pre and config.c.in,
|
||||
# respectively. Note that Makefile.pre is created from Makefile.pre.in
|
||||
# by the toplevel configure script.
|
||||
|
||||
# (VPATH notes: Setup and Makefile.pre are in the build directory, as
|
||||
# are Makefile and config.c; the *.in files are in the source directory.)
|
||||
|
||||
# Each line in this file describes one or more optional modules.
|
||||
# Modules configured here will not be compiled by the setup.py script,
|
||||
# so the file can be used to override setup.py's behavior.
|
||||
# Tag lines containing just the word "*static*", "*shared*" or "*disabled*"
|
||||
# (without the quotes but with the stars) are used to tag the following module
|
||||
# descriptions. Tag lines may alternate throughout this file. Modules are
|
||||
# built statically when they are preceded by a "*static*" tag line or when
|
||||
# there is no tag line between the start of the file and the module
|
||||
# description. Modules are built as a shared library when they are preceded by
|
||||
# a "*shared*" tag line. Modules are not built at all, not by the Makefile,
|
||||
# nor by the setup.py script, when they are preceded by a "*disabled*" tag
|
||||
# line.
|
||||
|
||||
# Lines have the following structure:
|
||||
#
|
||||
# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
|
||||
#
|
||||
# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
|
||||
# <cpparg> is anything starting with -I, -D, -U or -C
|
||||
# <library> is anything ending in .a or beginning with -l or -L
|
||||
# <module> is anything else but should be a valid Python
|
||||
# identifier (letters, digits, underscores, beginning with non-digit)
|
||||
#
|
||||
# (As the makesetup script changes, it may recognize some other
|
||||
# arguments as well, e.g. *.so and *.sl as libraries. See the big
|
||||
# case statement in the makesetup script.)
|
||||
#
|
||||
# Lines can also have the form
|
||||
#
|
||||
# <name> = <value>
|
||||
#
|
||||
# which defines a Make variable definition inserted into Makefile.in.
|
||||
# You can also use any Make variable that is detected by configure and
|
||||
# defined in Makefile.pre.in, e.g. OpenSSL flags $(OPENSSL_INCLUDES).
|
||||
#
|
||||
# Rules generated by makesetup use additional variables:
|
||||
#
|
||||
# - All source file rules have a dependency on $(PYTHON_HEADERS) and on
|
||||
# optional variable $(MODULES_{mod_upper}_DEPS).
|
||||
# - If no <cpparg> and no <library> arguments are given, then makesetup
|
||||
# defaults to $(MODULES_{mod_upper}_CFLAGS) cppargs and
|
||||
# $(MODULES_{mod_upper}_LDFLAGS) libraries. The variables are typically
|
||||
# defined by configure.
|
||||
#
|
||||
# The build process works like this:
|
||||
#
|
||||
# 1. Build all modules that are declared as static in Modules/Setup,
|
||||
# combine them into libpythonxy.a, combine that into python.
|
||||
# 2. Build all modules that are listed as shared in Modules/Setup.
|
||||
# 3. Invoke setup.py. That builds all modules that
|
||||
# a) are not builtin, and
|
||||
# b) are not listed in Modules/Setup, and
|
||||
# c) can be build on the target
|
||||
#
|
||||
# Therefore, modules declared to be shared will not be
|
||||
# included in the config.c file, nor in the list of objects to be
|
||||
# added to the library archive, and their linker options won't be
|
||||
# added to the linker options. Rules to create their .o files and
|
||||
# their shared libraries will still be added to the Makefile, and
|
||||
# their names will be collected in the Make variable SHAREDMODS. This
|
||||
# is used to build modules as shared libraries. (They can be
|
||||
# installed using "make sharedinstall", which is implied by the
|
||||
# toplevel "make install" target.) (For compatibility,
|
||||
# *noconfig* has the same effect as *shared*.)
|
||||
#
|
||||
# NOTE: As a standard policy, as many modules as can be supported by a
|
||||
# platform should be listed below. The distribution comes with all
|
||||
# modules enabled that are supported by most platforms and don't
|
||||
# require you to download sources from elsewhere.
|
||||
#
|
||||
# NOTE: Avoid editing this file directly. Local changes should go into
|
||||
# Modules/Setup.local file. To enable all modules for testing, run
|
||||
#
|
||||
# sed -n -E 's/^#([a-z_\*].*)$/\1/p' Modules/Setup > Modules/Setup.local
|
||||
|
||||
|
||||
# Some special rules to define PYTHONPATH.
|
||||
# Edit the definitions below to indicate which options you are using.
|
||||
# Don't add any whitespace or comments!
|
||||
|
||||
# Directories where library files get installed.
|
||||
# DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
|
||||
DESTLIB=$(LIBDEST)
|
||||
MACHDESTLIB=$(BINLIBDEST)
|
||||
|
||||
# NOTE: all the paths are now relative to the prefix that is computed
|
||||
# at run time!
|
||||
|
||||
# Standard path -- don't edit.
|
||||
# No leading colon since this is the first entry.
|
||||
# Empty since this is now just the runtime prefix.
|
||||
DESTPATH=
|
||||
|
||||
# Site specific path components -- should begin with : if non-empty
|
||||
SITEPATH=
|
||||
|
||||
# Standard path components for test modules
|
||||
TESTPATH=
|
||||
|
||||
COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)
|
||||
PYTHONPATH=$(COREPYTHONPATH)
|
||||
|
||||
|
||||
# ---
|
||||
# Built-in modules required to get a functioning interpreter are listed in
|
||||
# Modules/Setup.bootstrap.
|
||||
|
||||
# ---
|
||||
# The rest of the modules listed in this file are all commented out by
|
||||
# default. Usually they can be detected and built as dynamically
|
||||
# loaded modules by setup.py. If you're on a platform that doesn't
|
||||
# support dynamic loading, want to compile modules statically into the
|
||||
# Python binary, or need to specify some odd set of compiler switches,
|
||||
# you can uncomment the appropriate lines below.
|
||||
|
||||
# Uncommenting the following line tells makesetup that all following
|
||||
# modules are to be built as shared libraries (see above for more
|
||||
# detail; also note that *static* or *disabled* cancels this effect):
|
||||
|
||||
#*shared*
|
||||
|
||||
# Modules that should always be present (POSIX and Windows):
|
||||
|
||||
#_asyncio _asynciomodule.c
|
||||
#_bisect _bisectmodule.c
|
||||
#_contextvars _contextvarsmodule.c
|
||||
#_csv _csv.c
|
||||
#_datetime _datetimemodule.c
|
||||
#_decimal _decimal/_decimal.c
|
||||
#_heapq _heapqmodule.c
|
||||
#_json _json.c
|
||||
#_lsprof _lsprof.c rotatingtree.c
|
||||
#_multiprocessing -I$(srcdir)/Modules/_multiprocessing _multiprocessing/multiprocessing.c _multiprocessing/semaphore.c
|
||||
#_opcode _opcode.c
|
||||
#_pickle _pickle.c
|
||||
#_queue _queuemodule.c
|
||||
#_random _randommodule.c
|
||||
#_socket socketmodule.c
|
||||
#_statistics _statisticsmodule.c
|
||||
#_struct _struct.c
|
||||
#_typing _typingmodule.c
|
||||
#_zoneinfo _zoneinfo.c
|
||||
#array arraymodule.c
|
||||
#audioop audioop.c
|
||||
#binascii binascii.c
|
||||
#cmath cmathmodule.c
|
||||
#math mathmodule.c
|
||||
#mmap mmapmodule.c
|
||||
#select selectmodule.c
|
||||
|
||||
# XML
|
||||
#_elementtree _elementtree.c
|
||||
#pyexpat pyexpat.c
|
||||
|
||||
# hashing builtins
|
||||
#_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
|
||||
#_md5 md5module.c
|
||||
#_sha1 sha1module.c
|
||||
#_sha256 sha256module.c
|
||||
#_sha512 sha512module.c
|
||||
#_sha3 _sha3/sha3module.c
|
||||
|
||||
# text encodings and unicode
|
||||
#_codecs_cn cjkcodecs/_codecs_cn.c
|
||||
#_codecs_hk cjkcodecs/_codecs_hk.c
|
||||
#_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
|
||||
#_codecs_jp cjkcodecs/_codecs_jp.c
|
||||
#_codecs_kr cjkcodecs/_codecs_kr.c
|
||||
#_codecs_tw cjkcodecs/_codecs_tw.c
|
||||
#_multibytecodec cjkcodecs/multibytecodec.c
|
||||
#unicodedata unicodedata.c
|
||||
|
||||
# Modules with some UNIX dependencies
|
||||
|
||||
#_posixsubprocess _posixsubprocess.c
|
||||
#_posixshmem -I$(srcdir)/Modules/_multiprocessing _multiprocessing/posixshmem.c -lrt
|
||||
#fcntl fcntlmodule.c
|
||||
#grp grpmodule.c
|
||||
#ossaudiodev ossaudiodev.c
|
||||
#resource resource.c
|
||||
#spwd spwdmodule.c
|
||||
#syslog syslogmodule.c
|
||||
#termios termios.c
|
||||
|
||||
# Modules with UNIX dependencies that require external libraries
|
||||
|
||||
#_crypt _cryptmodule.c -lcrypt
|
||||
#nis nismodule.c -I/usr/include/tirpc -lnsl -ltirpc
|
||||
|
||||
# Modules that require external libraries.
|
||||
|
||||
#_bz2 _bz2module.c -lbz2
|
||||
#_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c -ldl -lffi -DHAVE_FFI_PREP_CIF_VAR -DHAVE_FFI_PREP_CLOSURE_LOC -DHAVE_FFI_CLOSURE_ALLOC
|
||||
# The _dbm module supports NDBM, GDBM with compat module, and Berkeley DB.
|
||||
#_dbm _dbmmodule.c -lgdbm_compat -DUSE_GDBM_COMPAT
|
||||
#_gdbm _gdbmmodule.c -lgdbm
|
||||
#_lzma _lzmamodule.c -llzma
|
||||
#_uuid _uuidmodule.c -luuid
|
||||
#zlib zlibmodule.c -lz
|
||||
|
||||
# The readline module also supports libeditline (-leditline).
|
||||
# Some systems may require -ltermcap or -ltermlib.
|
||||
#readline readline.c -lreadline -ltermcap
|
||||
|
||||
# OpenSSL bindings
|
||||
#_ssl _ssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) $(OPENSSL_LIBS)
|
||||
#_hashlib _hashopenssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) -lcrypto
|
||||
|
||||
# To statically link OpenSSL:
|
||||
# _ssl _ssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) \
|
||||
# -l:libssl.a -Wl,--exclude-libs,libssl.a \
|
||||
# -l:libcrypto.a -Wl,--exclude-libs,libcrypto.a
|
||||
# _hashlib _hashopenssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) \
|
||||
# -l:libcrypto.a -Wl,--exclude-libs,libcrypto.a
|
||||
|
||||
# The _tkinter module.
|
||||
#
|
||||
# The command for _tkinter is long and site specific. Please
|
||||
# uncomment and/or edit those parts as indicated. If you don't have a
|
||||
# specific extension (e.g. Tix or BLT), leave the corresponding line
|
||||
# commented out. (Leave the trailing backslashes in! If you
|
||||
# experience strange errors, you may want to join all uncommented
|
||||
# lines and remove the backslashes -- the backslash interpretation is
|
||||
# done by the shell's "read" command and it may not be implemented on
|
||||
# every system.
|
||||
|
||||
# *** Always uncomment this (leave the leading underscore in!):
|
||||
#_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT $(TCLTK_INCLUDES) $(TCLTK_LIBS) \
|
||||
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
|
||||
# -L/usr/local/lib \
|
||||
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
|
||||
# -I/usr/local/include \
|
||||
# *** Uncomment and edit to reflect where your X11 header files are:
|
||||
# -I/usr/X11R6/include \
|
||||
# *** Or uncomment this for Solaris:
|
||||
# -I/usr/openwin/include \
|
||||
# *** Uncomment and edit for Tix extension only:
|
||||
# -DWITH_TIX -ltix8.1.8.2 \
|
||||
# *** Uncomment and edit for BLT extension only:
|
||||
# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
|
||||
# *** Uncomment and edit for PIL (TkImaging) extension only:
|
||||
# (See http://www.pythonware.com/products/pil/ for more info)
|
||||
# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
|
||||
# *** Uncomment and edit for TOGL extension only:
|
||||
# -DWITH_TOGL togl.c \
|
||||
# *** Uncomment and edit to reflect where your X11 libraries are:
|
||||
# -L/usr/X11R6/lib \
|
||||
# *** Or uncomment this for Solaris:
|
||||
# -L/usr/openwin/lib \
|
||||
# *** Uncomment these for TOGL extension only:
|
||||
# -lGL -lGLU -lXext -lXmu \
|
||||
# *** Uncomment for AIX:
|
||||
# -lld \
|
||||
# *** Always uncomment this; X11 libraries to link with:
|
||||
# -lX11
|
||||
|
||||
# Some system have -lcurses
|
||||
#_curses -lncurses -lncursesw -ltermcap _cursesmodule.c
|
||||
#_curses_panel -lpanel -lncurses _curses_panel.c
|
||||
|
||||
# macOS specific module, needs SystemConfiguration and CoreFoundation framework
|
||||
# _scproxy _scproxy.c
|
||||
|
||||
# Examples
|
||||
|
||||
#xx xxmodule.c
|
||||
#xxlimited xxlimited.c
|
||||
#xxlimited_35 xxlimited_35.c
|
||||
xxsubtype xxsubtype.c # Required for the test suite to pass!
|
||||
|
||||
# Testing
|
||||
|
||||
#_xxsubinterpreters _xxsubinterpretersmodule.c
|
||||
#_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
|
||||
#_testbuffer _testbuffer.c
|
||||
#_testinternalcapi _testinternalcapi.c
|
||||
|
||||
# Some testing modules MUST be built as shared libraries.
|
||||
|
||||
#*shared*
|
||||
#_ctypes_test _ctypes/_ctypes_test.c
|
||||
#_testcapi _testcapimodule.c
|
||||
#_testimportmultiple _testimportmultiple.c
|
||||
#_testmultiphase _testmultiphase.c
|
||||
|
||||
# ---
|
||||
# Uncommenting the following line tells makesetup that all following modules
|
||||
# are not built (see above for more detail).
|
||||
#
|
||||
#*disabled*
|
||||
#
|
||||
# _sqlite3 _tkinter _curses pyexpat
|
||||
# _codecs_jp _codecs_kr _codecs_tw unicodedata
|
||||
35
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup.bootstrap
vendored
Normal file
35
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup.bootstrap
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
# ---
|
||||
# Built-in modules required to get a functioning interpreter;
|
||||
# cannot be built as shared!
|
||||
*static*
|
||||
|
||||
# module C APIs are used in core
|
||||
atexit atexitmodule.c
|
||||
faulthandler faulthandler.c
|
||||
posix posixmodule.c
|
||||
_signal signalmodule.c
|
||||
_tracemalloc _tracemalloc.c
|
||||
|
||||
# modules used by importlib, deepfreeze, freeze, runpy, and sysconfig
|
||||
_codecs _codecsmodule.c
|
||||
_collections _collectionsmodule.c
|
||||
errno errnomodule.c
|
||||
_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
|
||||
itertools itertoolsmodule.c
|
||||
_sre _sre/sre.c
|
||||
_thread _threadmodule.c
|
||||
time timemodule.c
|
||||
_weakref _weakref.c
|
||||
|
||||
# commonly used core modules
|
||||
_abc _abc.c
|
||||
_functools _functoolsmodule.c
|
||||
_locale _localemodule.c
|
||||
_operator _operator.c
|
||||
_stat _stat.c
|
||||
_symtable symtablemodule.c
|
||||
|
||||
# for systems without $HOME env, used by site._getuserbase()
|
||||
pwd pwdmodule.c
|
||||
1
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup.local
vendored
Normal file
1
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup.local
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# Edit this file for local setup changes
|
||||
182
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup.stdlib
vendored
Normal file
182
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/Setup.stdlib
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# This file is autogenerated from Modules/Setup.stdlib.in.
|
||||
#
|
||||
|
||||
# The file is not used by default yet. For testing do:
|
||||
#
|
||||
# ln -sfr Modules/Setup.stdlib Modules/Setup.local
|
||||
#
|
||||
|
||||
# * @MODULE_{NAME}_TRUE@ is removed when configure detects all build
|
||||
# dependencies for a module. Otherwise the template variable is replaced
|
||||
# by a comment "#" and the module is skipped.
|
||||
# * Module lines without any compiler and linker flags automatically use
|
||||
# $(MODULE_{NAME}_CFLAGS) and $(MODULE_{NAME}_LDFLAGS). These flags are
|
||||
# generated by PY_STDLIB_MOD macro.
|
||||
# * All source files automatically depend on $(PYTHON_HEADERS) and
|
||||
# $(MODULE_{NAME}_DEPS).
|
||||
#
|
||||
# See Modules/Setup and Modules/makesetup
|
||||
#
|
||||
|
||||
|
||||
# Build modules statically or as shared extensions
|
||||
# *shared* / *static*
|
||||
*shared*
|
||||
|
||||
|
||||
############################################################################
|
||||
# Modules that should always be present (POSIX and Windows):
|
||||
array arraymodule.c
|
||||
_asyncio _asynciomodule.c
|
||||
_bisect _bisectmodule.c
|
||||
_contextvars _contextvarsmodule.c
|
||||
_csv _csv.c
|
||||
_heapq _heapqmodule.c
|
||||
_json _json.c
|
||||
_lsprof _lsprof.c rotatingtree.c
|
||||
_opcode _opcode.c
|
||||
_pickle _pickle.c
|
||||
_queue _queuemodule.c
|
||||
_random _randommodule.c
|
||||
_struct _struct.c
|
||||
_typing _typingmodule.c
|
||||
_xxsubinterpreters _xxsubinterpretersmodule.c
|
||||
_zoneinfo _zoneinfo.c
|
||||
|
||||
# needs libm
|
||||
audioop audioop.c
|
||||
math mathmodule.c
|
||||
cmath cmathmodule.c
|
||||
_statistics _statisticsmodule.c
|
||||
|
||||
# needs libm and on some platforms librt
|
||||
_datetime _datetimemodule.c
|
||||
|
||||
# _decimal uses libmpdec
|
||||
# either static libmpdec.a from Modules/_decimal/libmpdec or libmpdec.so
|
||||
# with ./configure --with-system-libmpdec
|
||||
_decimal _decimal/_decimal.c
|
||||
|
||||
# compression libs and binascii (optional CRC32 from zlib)
|
||||
# bindings need -lbz2, -lz, or -llzma, respectively
|
||||
binascii binascii.c
|
||||
_bz2 _bz2module.c
|
||||
_lzma _lzmamodule.c
|
||||
zlib zlibmodule.c
|
||||
|
||||
# dbm/gdbm
|
||||
# dbm needs either libndbm, libgdbm_compat, or libdb 5.x
|
||||
#@MODULE__DBM_TRUE@_dbm _dbmmodule.c
|
||||
# gdbm module needs -lgdbm
|
||||
#_gdbm _gdbmmodule.c
|
||||
|
||||
# needs -lreadline or -leditline, sometimes termcap, termlib, or tinfo
|
||||
#@MODULE_READLINE_TRUE@readline readline.c
|
||||
|
||||
# hashing builtins, can be disabled with --without-builtin-hashlib-hashes
|
||||
_md5 md5module.c
|
||||
_sha1 sha1module.c
|
||||
_sha256 sha256module.c
|
||||
_sha512 sha512module.c
|
||||
_sha3 _sha3/sha3module.c
|
||||
_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
|
||||
|
||||
############################################################################
|
||||
# XML and text
|
||||
|
||||
# pyexpat module uses libexpat
|
||||
# either static libexpat.a from Modules/expat or libexpat.so with
|
||||
# ./configure --with-system-expat
|
||||
pyexpat pyexpat.c
|
||||
|
||||
# _elementtree libexpat via CAPI hook in pyexpat.
|
||||
_elementtree _elementtree.c
|
||||
|
||||
_codecs_cn cjkcodecs/_codecs_cn.c
|
||||
_codecs_hk cjkcodecs/_codecs_hk.c
|
||||
_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
|
||||
_codecs_jp cjkcodecs/_codecs_jp.c
|
||||
_codecs_kr cjkcodecs/_codecs_kr.c
|
||||
_codecs_tw cjkcodecs/_codecs_tw.c
|
||||
_multibytecodec cjkcodecs/multibytecodec.c
|
||||
unicodedata unicodedata.c
|
||||
|
||||
############################################################################
|
||||
# Modules with some UNIX dependencies
|
||||
#
|
||||
|
||||
# needs -lcrypt on some systems
|
||||
_crypt _cryptmodule.c
|
||||
fcntl fcntlmodule.c
|
||||
grp grpmodule.c
|
||||
mmap mmapmodule.c
|
||||
# FreeBSD: nis/yp APIs are in libc
|
||||
# Linux: glibc has deprecated SUN RPC, APIs are in libnsl and libtirpc (bpo-32521)
|
||||
nis nismodule.c
|
||||
# needs sys/soundcard.h or linux/soundcard.h (Linux, FreeBSD)
|
||||
ossaudiodev ossaudiodev.c
|
||||
_posixsubprocess _posixsubprocess.c
|
||||
resource resource.c
|
||||
select selectmodule.c
|
||||
_socket socketmodule.c
|
||||
# AIX has shadow passwords, but does not provide getspent API
|
||||
spwd spwdmodule.c
|
||||
syslog syslogmodule.c
|
||||
termios termios.c
|
||||
|
||||
# multiprocessing
|
||||
_posixshmem _multiprocessing/posixshmem.c
|
||||
_multiprocessing _multiprocessing/multiprocessing.c _multiprocessing/semaphore.c
|
||||
|
||||
|
||||
############################################################################
|
||||
# Modules with third party dependencies
|
||||
#
|
||||
|
||||
# needs -lffi and -ldl
|
||||
#@MODULE__CTYPES_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c
|
||||
|
||||
# needs -lncurses, -lncursesw or -lcurses, sometimes -ltermcap
|
||||
#@MODULE__CURSES_TRUE@_curses _cursesmodule.c
|
||||
# needs -lncurses and -lpanel
|
||||
#@MODULE__CURSES_PANEL_TRUE@_curses_panel _curses_panel.c
|
||||
|
||||
_sqlite3 _sqlite/blob.c _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c _sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c
|
||||
|
||||
# needs -lssl and -lcrypt
|
||||
_ssl _ssl.c
|
||||
# needs -lcrypt
|
||||
_hashlib _hashopenssl.c
|
||||
|
||||
# Linux: -luuid, BSD/AIX: libc's uuid_create()
|
||||
_uuid _uuidmodule.c
|
||||
|
||||
_tkinter _tkinter.c tkappinit.c
|
||||
|
||||
############################################################################
|
||||
# macOS specific modules
|
||||
|
||||
# _scproxy needs SystemConfiguration and CoreFoundation framework
|
||||
#_scproxy _scproxy.c
|
||||
|
||||
|
||||
############################################################################
|
||||
# Test modules
|
||||
|
||||
_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
|
||||
_testbuffer _testbuffer.c
|
||||
_testinternalcapi _testinternalcapi.c
|
||||
_testcapi _testcapimodule.c
|
||||
_testclinic _testclinic.c
|
||||
|
||||
# Some testing modules MUST be built as shared libraries.
|
||||
*shared*
|
||||
_testimportmultiple _testimportmultiple.c
|
||||
_testmultiphase _testmultiphase.c
|
||||
_ctypes_test _ctypes/_ctypes_test.c
|
||||
|
||||
# Limited API template modules; must be built as shared modules.
|
||||
xxlimited xxlimited.c
|
||||
xxlimited_35 xxlimited_35.c
|
||||
BIN
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/__pycache__/python-config.cpython-311.pyc
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/__pycache__/python-config.cpython-311.pyc
vendored
Normal file
Binary file not shown.
118
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/config.c
vendored
Normal file
118
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/config.c
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
/* Generated automatically from /home/conda/feedstock_root/build_artifacts/python-split_1680770505122/work/Modules/config.c.in by makesetup. */
|
||||
/* -*- C -*- ***********************************************
|
||||
Copyright (c) 2000, BeOpen.com.
|
||||
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
|
||||
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
|
||||
All rights reserved.
|
||||
|
||||
See the file "Misc/COPYRIGHT" for information on usage and
|
||||
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
******************************************************************/
|
||||
|
||||
/* Module configuration */
|
||||
|
||||
/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
|
||||
|
||||
/* This file contains the table of built-in modules.
|
||||
See create_builtin() in import.c. */
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
extern PyObject* PyInit_atexit(void);
|
||||
extern PyObject* PyInit_faulthandler(void);
|
||||
extern PyObject* PyInit_posix(void);
|
||||
extern PyObject* PyInit__signal(void);
|
||||
extern PyObject* PyInit__tracemalloc(void);
|
||||
extern PyObject* PyInit__codecs(void);
|
||||
extern PyObject* PyInit__collections(void);
|
||||
extern PyObject* PyInit_errno(void);
|
||||
extern PyObject* PyInit__io(void);
|
||||
extern PyObject* PyInit_itertools(void);
|
||||
extern PyObject* PyInit__sre(void);
|
||||
extern PyObject* PyInit__thread(void);
|
||||
extern PyObject* PyInit_time(void);
|
||||
extern PyObject* PyInit__weakref(void);
|
||||
extern PyObject* PyInit__abc(void);
|
||||
extern PyObject* PyInit__functools(void);
|
||||
extern PyObject* PyInit__locale(void);
|
||||
extern PyObject* PyInit__operator(void);
|
||||
extern PyObject* PyInit__stat(void);
|
||||
extern PyObject* PyInit__symtable(void);
|
||||
extern PyObject* PyInit_pwd(void);
|
||||
extern PyObject* PyInit_xxsubtype(void);
|
||||
|
||||
/* -- ADDMODULE MARKER 1 -- */
|
||||
|
||||
extern PyObject* PyMarshal_Init(void);
|
||||
extern PyObject* PyInit__imp(void);
|
||||
extern PyObject* PyInit_gc(void);
|
||||
extern PyObject* PyInit__ast(void);
|
||||
extern PyObject* PyInit__tokenize(void);
|
||||
extern PyObject* _PyWarnings_Init(void);
|
||||
extern PyObject* PyInit__string(void);
|
||||
|
||||
struct _inittab _PyImport_Inittab[] = {
|
||||
|
||||
{"atexit", PyInit_atexit},
|
||||
{"faulthandler", PyInit_faulthandler},
|
||||
{"posix", PyInit_posix},
|
||||
{"_signal", PyInit__signal},
|
||||
{"_tracemalloc", PyInit__tracemalloc},
|
||||
{"_codecs", PyInit__codecs},
|
||||
{"_collections", PyInit__collections},
|
||||
{"errno", PyInit_errno},
|
||||
{"_io", PyInit__io},
|
||||
{"itertools", PyInit_itertools},
|
||||
{"_sre", PyInit__sre},
|
||||
{"_thread", PyInit__thread},
|
||||
{"time", PyInit_time},
|
||||
{"_weakref", PyInit__weakref},
|
||||
{"_abc", PyInit__abc},
|
||||
{"_functools", PyInit__functools},
|
||||
{"_locale", PyInit__locale},
|
||||
{"_operator", PyInit__operator},
|
||||
{"_stat", PyInit__stat},
|
||||
{"_symtable", PyInit__symtable},
|
||||
{"pwd", PyInit_pwd},
|
||||
{"xxsubtype", PyInit_xxsubtype},
|
||||
|
||||
/* -- ADDMODULE MARKER 2 -- */
|
||||
|
||||
/* This module lives in marshal.c */
|
||||
{"marshal", PyMarshal_Init},
|
||||
|
||||
/* This lives in import.c */
|
||||
{"_imp", PyInit__imp},
|
||||
|
||||
/* This lives in Python/Python-ast.c */
|
||||
{"_ast", PyInit__ast},
|
||||
|
||||
/* This lives in Python/Python-tokenizer.c */
|
||||
{"_tokenize", PyInit__tokenize},
|
||||
|
||||
/* These entries are here for sys.builtin_module_names */
|
||||
{"builtins", NULL},
|
||||
{"sys", NULL},
|
||||
|
||||
/* This lives in gcmodule.c */
|
||||
{"gc", PyInit_gc},
|
||||
|
||||
/* This lives in _warnings.c */
|
||||
{"_warnings", _PyWarnings_Init},
|
||||
|
||||
/* This lives in Objects/unicodeobject.c */
|
||||
{"_string", PyInit__string},
|
||||
|
||||
/* Sentinel */
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
71
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/config.c.in
vendored
Normal file
71
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/config.c.in
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
/* -*- C -*- ***********************************************
|
||||
Copyright (c) 2000, BeOpen.com.
|
||||
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
|
||||
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
|
||||
All rights reserved.
|
||||
|
||||
See the file "Misc/COPYRIGHT" for information on usage and
|
||||
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
******************************************************************/
|
||||
|
||||
/* Module configuration */
|
||||
|
||||
/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
|
||||
|
||||
/* This file contains the table of built-in modules.
|
||||
See create_builtin() in import.c. */
|
||||
|
||||
#include "Python.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/* -- ADDMODULE MARKER 1 -- */
|
||||
|
||||
extern PyObject* PyMarshal_Init(void);
|
||||
extern PyObject* PyInit__imp(void);
|
||||
extern PyObject* PyInit_gc(void);
|
||||
extern PyObject* PyInit__ast(void);
|
||||
extern PyObject* PyInit__tokenize(void);
|
||||
extern PyObject* _PyWarnings_Init(void);
|
||||
extern PyObject* PyInit__string(void);
|
||||
|
||||
struct _inittab _PyImport_Inittab[] = {
|
||||
|
||||
/* -- ADDMODULE MARKER 2 -- */
|
||||
|
||||
/* This module lives in marshal.c */
|
||||
{"marshal", PyMarshal_Init},
|
||||
|
||||
/* This lives in import.c */
|
||||
{"_imp", PyInit__imp},
|
||||
|
||||
/* This lives in Python/Python-ast.c */
|
||||
{"_ast", PyInit__ast},
|
||||
|
||||
/* This lives in Python/Python-tokenizer.c */
|
||||
{"_tokenize", PyInit__tokenize},
|
||||
|
||||
/* These entries are here for sys.builtin_module_names */
|
||||
{"builtins", NULL},
|
||||
{"sys", NULL},
|
||||
|
||||
/* This lives in gcmodule.c */
|
||||
{"gc", PyInit_gc},
|
||||
|
||||
/* This lives in _warnings.c */
|
||||
{"_warnings", _PyWarnings_Init},
|
||||
|
||||
/* This lives in Objects/unicodeobject.c */
|
||||
{"_string", PyInit__string},
|
||||
|
||||
/* Sentinel */
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
541
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/install-sh
vendored
Executable file
541
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/install-sh
vendored
Executable file
@@ -0,0 +1,541 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2020-11-14.01; # UTC
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
# following copyright and license.
|
||||
#
|
||||
# Copyright (C) 1994 X Consortium
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the X Consortium shall not
|
||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
# ings in this Software without prior written authorization from the X Consor-
|
||||
# tium.
|
||||
#
|
||||
#
|
||||
# FSF changes to this file are in the public domain.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# 'make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch.
|
||||
|
||||
tab=' '
|
||||
nl='
|
||||
'
|
||||
IFS=" $tab$nl"
|
||||
|
||||
# Set DOITPROG to "echo" to test this script.
|
||||
|
||||
doit=${DOITPROG-}
|
||||
doit_exec=${doit:-exec}
|
||||
|
||||
# Put in absolute file names if you don't have them in your path;
|
||||
# or use environment vars.
|
||||
|
||||
chgrpprog=${CHGRPPROG-chgrp}
|
||||
chmodprog=${CHMODPROG-chmod}
|
||||
chownprog=${CHOWNPROG-chown}
|
||||
cmpprog=${CMPPROG-cmp}
|
||||
cpprog=${CPPROG-cp}
|
||||
mkdirprog=${MKDIRPROG-mkdir}
|
||||
mvprog=${MVPROG-mv}
|
||||
rmprog=${RMPROG-rm}
|
||||
stripprog=${STRIPPROG-strip}
|
||||
|
||||
posix_mkdir=
|
||||
|
||||
# Desired mode of installed file.
|
||||
mode=0755
|
||||
|
||||
# Create dirs (including intermediate dirs) using mode 755.
|
||||
# This is like GNU 'install' as of coreutils 8.32 (2020).
|
||||
mkdir_umask=22
|
||||
|
||||
backupsuffix=
|
||||
chgrpcmd=
|
||||
chmodcmd=$chmodprog
|
||||
chowncmd=
|
||||
mvcmd=$mvprog
|
||||
rmcmd="$rmprog -f"
|
||||
stripcmd=
|
||||
|
||||
src=
|
||||
dst=
|
||||
dir_arg=
|
||||
dst_arg=
|
||||
|
||||
copy_on_change=false
|
||||
is_target_a_directory=possibly
|
||||
|
||||
usage="\
|
||||
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||
or: $0 [OPTION]... -d DIRECTORIES...
|
||||
|
||||
In the 1st form, copy SRCFILE to DSTFILE.
|
||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||
In the 4th, create DIRECTORIES.
|
||||
|
||||
Options:
|
||||
--help display this help and exit.
|
||||
--version display version info and exit.
|
||||
|
||||
-c (ignored)
|
||||
-C install only if different (preserve data modification time)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-p pass -p to $cpprog.
|
||||
-s $stripprog installed files.
|
||||
-S SUFFIX attempt to back up existing files, with suffix SUFFIX.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||
RMPROG STRIPPROG
|
||||
|
||||
By default, rm is invoked with -f; when overridden with RMPROG,
|
||||
it's up to you to specify -f if you want it.
|
||||
|
||||
If -S is not specified, no backups are attempted.
|
||||
|
||||
Email bug reports to bug-automake@gnu.org.
|
||||
Automake home page: https://www.gnu.org/software/automake/
|
||||
"
|
||||
|
||||
while test $# -ne 0; do
|
||||
case $1 in
|
||||
-c) ;;
|
||||
|
||||
-C) copy_on_change=true;;
|
||||
|
||||
-d) dir_arg=true;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift;;
|
||||
|
||||
--help) echo "$usage"; exit $?;;
|
||||
|
||||
-m) mode=$2
|
||||
case $mode in
|
||||
*' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
|
||||
echo "$0: invalid mode: $mode" >&2
|
||||
exit 1;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift;;
|
||||
|
||||
-p) cpprog="$cpprog -p";;
|
||||
|
||||
-s) stripcmd=$stripprog;;
|
||||
|
||||
-S) backupsuffix="$2"
|
||||
shift;;
|
||||
|
||||
-t)
|
||||
is_target_a_directory=always
|
||||
dst_arg=$2
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $dst_arg in
|
||||
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-T) is_target_a_directory=never;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
--) shift
|
||||
break;;
|
||||
|
||||
-*) echo "$0: invalid option: $1" >&2
|
||||
exit 1;;
|
||||
|
||||
*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# We allow the use of options -d and -T together, by making -d
|
||||
# take the precedence; this is for compatibility with GNU install.
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
if test -n "$dst_arg"; then
|
||||
echo "$0: target directory not allowed when installing a directory." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
||||
# When -d is used, all remaining arguments are directories to create.
|
||||
# When -t is used, the destination is already specified.
|
||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||
for arg
|
||||
do
|
||||
if test -n "$dst_arg"; then
|
||||
# $@ is not empty: it contains at least $arg.
|
||||
set fnord "$@" "$dst_arg"
|
||||
shift # fnord
|
||||
fi
|
||||
shift # arg
|
||||
dst_arg=$arg
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $dst_arg in
|
||||
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
if test $# -eq 0; then
|
||||
if test -z "$dir_arg"; then
|
||||
echo "$0: no input file specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
# It's OK to call 'install-sh -d' without argument.
|
||||
# This can happen when creating conditional directories.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if test -z "$dir_arg"; then
|
||||
if test $# -gt 1 || test "$is_target_a_directory" = always; then
|
||||
if test ! -d "$dst_arg"; then
|
||||
echo "$0: $dst_arg: Is not a directory." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -z "$dir_arg"; then
|
||||
do_exit='(exit $ret); exit $ret'
|
||||
trap "ret=129; $do_exit" 1
|
||||
trap "ret=130; $do_exit" 2
|
||||
trap "ret=141; $do_exit" 13
|
||||
trap "ret=143; $do_exit" 15
|
||||
|
||||
# Set umask so as not to create temps with too-generous modes.
|
||||
# However, 'strip' requires both read and write access to temps.
|
||||
case $mode in
|
||||
# Optimize common cases.
|
||||
*644) cp_umask=133;;
|
||||
*755) cp_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw='% 200'
|
||||
fi
|
||||
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
||||
*)
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw=,u+rw
|
||||
fi
|
||||
cp_umask=$mode$u_plus_rw;;
|
||||
esac
|
||||
fi
|
||||
|
||||
for src
|
||||
do
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $src in
|
||||
-* | [=\(\)!]) src=./$src;;
|
||||
esac
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
dst=$src
|
||||
dstdir=$dst
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
# Don't chown directories that already exist.
|
||||
if test $dstdir_status = 0; then
|
||||
chowncmd=""
|
||||
fi
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
if test ! -f "$src" && test ! -d "$src"; then
|
||||
echo "$0: $src does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$dst_arg"; then
|
||||
echo "$0: no destination specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
dst=$dst_arg
|
||||
|
||||
# If destination is a directory, append the input filename.
|
||||
if test -d "$dst"; then
|
||||
if test "$is_target_a_directory" = never; then
|
||||
echo "$0: $dst_arg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dstdir=$dst
|
||||
dstbase=`basename "$src"`
|
||||
case $dst in
|
||||
*/) dst=$dst$dstbase;;
|
||||
*) dst=$dst/$dstbase;;
|
||||
esac
|
||||
dstdir_status=0
|
||||
else
|
||||
dstdir=`dirname "$dst"`
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
fi
|
||||
fi
|
||||
|
||||
case $dstdir in
|
||||
*/) dstdirslash=$dstdir;;
|
||||
*) dstdirslash=$dstdir/;;
|
||||
esac
|
||||
|
||||
obsolete_mkdir_used=false
|
||||
|
||||
if test $dstdir_status != 0; then
|
||||
case $posix_mkdir in
|
||||
'')
|
||||
# With -d, create the new directory with the user-specified mode.
|
||||
# Otherwise, rely on $mkdir_umask.
|
||||
if test -n "$dir_arg"; then
|
||||
mkdir_mode=-m$mode
|
||||
else
|
||||
mkdir_mode=
|
||||
fi
|
||||
|
||||
posix_mkdir=false
|
||||
# The $RANDOM variable is not portable (e.g., dash). Use it
|
||||
# here however when possible just to lower collision chance.
|
||||
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||
|
||||
trap '
|
||||
ret=$?
|
||||
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
|
||||
exit $ret
|
||||
' 0
|
||||
|
||||
# Because "mkdir -p" follows existing symlinks and we likely work
|
||||
# directly in world-writeable /tmp, make sure that the '$tmpdir'
|
||||
# directory is successfully created first before we actually test
|
||||
# 'mkdir -p'.
|
||||
if (umask $mkdir_umask &&
|
||||
$mkdirprog $mkdir_mode "$tmpdir" &&
|
||||
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
|
||||
then
|
||||
if test -z "$dir_arg" || {
|
||||
# Check for POSIX incompatibilities with -m.
|
||||
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||
# other-writable bit of parent directory when it shouldn't.
|
||||
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||
test_tmpdir="$tmpdir/a"
|
||||
ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
|
||||
case $ls_ld_tmpdir in
|
||||
d????-?r-*) different_mode=700;;
|
||||
d????-?--*) different_mode=755;;
|
||||
*) false;;
|
||||
esac &&
|
||||
$mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
|
||||
ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
|
||||
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||
}
|
||||
}
|
||||
then posix_mkdir=:
|
||||
fi
|
||||
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
|
||||
else
|
||||
# Remove any dirs left behind by ancient mkdir implementations.
|
||||
rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
|
||||
fi
|
||||
trap '' 0;;
|
||||
esac
|
||||
|
||||
if
|
||||
$posix_mkdir && (
|
||||
umask $mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
||||
)
|
||||
then :
|
||||
else
|
||||
|
||||
# mkdir does not conform to POSIX,
|
||||
# or it failed possibly due to a race condition. Create the
|
||||
# directory the slow way, step by step, checking for races as we go.
|
||||
|
||||
case $dstdir in
|
||||
/*) prefix='/';;
|
||||
[-=\(\)!]*) prefix='./';;
|
||||
*) prefix='';;
|
||||
esac
|
||||
|
||||
oIFS=$IFS
|
||||
IFS=/
|
||||
set -f
|
||||
set fnord $dstdir
|
||||
shift
|
||||
set +f
|
||||
IFS=$oIFS
|
||||
|
||||
prefixes=
|
||||
|
||||
for d
|
||||
do
|
||||
test X"$d" = X && continue
|
||||
|
||||
prefix=$prefix$d
|
||||
if test -d "$prefix"; then
|
||||
prefixes=
|
||||
else
|
||||
if $posix_mkdir; then
|
||||
(umask $mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||
# Don't fail if two instances are running concurrently.
|
||||
test -d "$prefix" || exit 1
|
||||
else
|
||||
case $prefix in
|
||||
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
||||
*) qprefix=$prefix;;
|
||||
esac
|
||||
prefixes="$prefixes '$qprefix'"
|
||||
fi
|
||||
fi
|
||||
prefix=$prefix/
|
||||
done
|
||||
|
||||
if test -n "$prefixes"; then
|
||||
# Don't fail if two instances are running concurrently.
|
||||
(umask $mkdir_umask &&
|
||||
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
||||
test -d "$dstdir" || exit 1
|
||||
obsolete_mkdir_used=true
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
|
||||
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
|
||||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
|
||||
else
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=${dstdirslash}_inst.$$_
|
||||
rmtmp=${dstdirslash}_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
(umask $cp_umask &&
|
||||
{ test -z "$stripcmd" || {
|
||||
# Create $dsttmp read-write so that cp doesn't create it read-only,
|
||||
# which would cause strip to fail.
|
||||
if test -z "$doit"; then
|
||||
: >"$dsttmp" # No need to fork-exec 'touch'.
|
||||
else
|
||||
$doit touch "$dsttmp"
|
||||
fi
|
||||
}
|
||||
} &&
|
||||
$doit_exec $cpprog "$src" "$dsttmp") &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||
#
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
|
||||
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
|
||||
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
||||
|
||||
# If -C, don't bother to copy if it wouldn't change the file.
|
||||
if $copy_on_change &&
|
||||
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
|
||||
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
|
||||
set -f &&
|
||||
set X $old && old=:$2:$4:$5:$6 &&
|
||||
set X $new && new=:$2:$4:$5:$6 &&
|
||||
set +f &&
|
||||
test "$old" = "$new" &&
|
||||
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
|
||||
then
|
||||
rm -f "$dsttmp"
|
||||
else
|
||||
# If $backupsuffix is set, and the file being installed
|
||||
# already exists, attempt a backup. Don't worry if it fails,
|
||||
# e.g., if mv doesn't support -f.
|
||||
if test -n "$backupsuffix" && test -f "$dst"; then
|
||||
$doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
|
||||
fi
|
||||
|
||||
# Rename the file to the real destination.
|
||||
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||
|
||||
# The rename failed, perhaps because mv can't rename something else
|
||||
# to itself, or perhaps because mv is so ancient that it does not
|
||||
# support -f.
|
||||
{
|
||||
# Now remove or move aside any old file at destination location.
|
||||
# We try this two ways since rm can't unlink itself on some
|
||||
# systems and the destination file might be busy for other
|
||||
# reasons. In this case, the final cleanup might fail but the new
|
||||
# file should still install successfully.
|
||||
{
|
||||
test ! -f "$dst" ||
|
||||
$doit $rmcmd "$dst" 2>/dev/null ||
|
||||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||
{ $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
|
||||
} ||
|
||||
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||
(exit 1); exit 1
|
||||
}
|
||||
} &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
$doit $mvcmd "$dsttmp" "$dst"
|
||||
}
|
||||
fi || exit 1
|
||||
|
||||
trap '' 0
|
||||
fi
|
||||
done
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'before-save-hook 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC0"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
||||
350
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/makesetup
vendored
Executable file
350
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/makesetup
vendored
Executable file
@@ -0,0 +1,350 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
# Convert templates into Makefile and config.c, based on the module
|
||||
# definitions found in the file Setup.
|
||||
#
|
||||
# Usage: makesetup [-s dir] [-c file] [-m file] [Setup] ... [-n [Setup] ...]
|
||||
#
|
||||
# Options:
|
||||
# -s directory: alternative source directory (default .)
|
||||
# -l directory: library source directory (default derived from $0)
|
||||
# -c file: alternative config.c template (default $libdir/config.c.in)
|
||||
# -c -: don't write config.c
|
||||
# -m file: alternative Makefile template (default ./Makefile.pre)
|
||||
# -m -: don't write Makefile
|
||||
#
|
||||
# Remaining arguments are one or more Setup files (default ./Setup).
|
||||
# Setup files after a -n option are used for their variables, modules
|
||||
# and libraries but not for their .o files.
|
||||
#
|
||||
# See Setup for a description of the format of the Setup file.
|
||||
#
|
||||
# The following edits are made:
|
||||
#
|
||||
# Copying config.c.in to config.c:
|
||||
# - insert an identifying comment at the start
|
||||
# - for each <module> mentioned in Setup before *noconfig*:
|
||||
# + insert 'extern PyObject* PyInit_<module>(void);' before MARKER 1
|
||||
# + insert '{"<module>", PyInit_<module>},' before MARKER 2
|
||||
#
|
||||
# Copying Makefile.pre to Makefile:
|
||||
# - insert an identifying comment at the start
|
||||
# - replace _MODBUILT_NAMES_ by the list of *static* and *shared* modules
|
||||
# from Setup
|
||||
# - replace _MODBSHARED_NAMES_ by the list of *shared* modules from Setup
|
||||
# - replace _MODDISABLED_NAMES_ by the list of *disabled* modules from Setup
|
||||
# - replace _MODOBJS_ by the list of objects from Setup (except for
|
||||
# Setup files after a -n option)
|
||||
# - replace _MODLIBS_ by the list of libraries from Setup
|
||||
# - for each object file mentioned in Setup, append a rule
|
||||
# '<file>.o: <file>.c; <build commands>' to the end of the Makefile
|
||||
# - for each module mentioned in Setup, append a rule
|
||||
# which creates a shared library version to the end of the Makefile
|
||||
# - for each variable definition found in Setup, insert the definition
|
||||
# before the comment 'Definitions added by makesetup'
|
||||
|
||||
# Loop over command line options
|
||||
usage='
|
||||
usage: makesetup [-s srcdir] [-l libdir] [-c config.c.in] [-m Makefile.pre]
|
||||
[Setup] ... [-n [Setup] ...]'
|
||||
srcdir='.'
|
||||
libdir=''
|
||||
config=''
|
||||
makepre=''
|
||||
noobjects=''
|
||||
doconfig=yes
|
||||
while :
|
||||
do
|
||||
case $1 in
|
||||
-s) shift; srcdir=$1; shift;;
|
||||
-l) shift; libdir=$1; shift;;
|
||||
-c) shift; config=$1; shift;;
|
||||
-m) shift; makepre=$1; shift;;
|
||||
--) shift; break;;
|
||||
-n) noobjects=yes;;
|
||||
-*) echo "$usage" 1>&2; exit 2;;
|
||||
*) break;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Set default libdir and config if not set by command line
|
||||
# (Not all systems have dirname)
|
||||
case $libdir in
|
||||
'') case $0 in
|
||||
*/*) libdir=`echo $0 | sed 's,/[^/]*$,,'`;;
|
||||
*) libdir=.;;
|
||||
esac;;
|
||||
esac
|
||||
case $config in
|
||||
'') config=$libdir/config.c.in;;
|
||||
esac
|
||||
case $makepre in
|
||||
'') makepre=Makefile.pre;;
|
||||
esac
|
||||
|
||||
# Newline for sed i and a commands
|
||||
NL='\
|
||||
'
|
||||
|
||||
# Setup to link with extra libraries when making shared extensions.
|
||||
# Currently, only Cygwin needs this baggage.
|
||||
case `uname -s` in
|
||||
CYGWIN*) if test $libdir = .
|
||||
then
|
||||
ExtraLibDir=.
|
||||
else
|
||||
ExtraLibDir='$(LIBPL)'
|
||||
fi
|
||||
ExtraLibs="-L$ExtraLibDir -lpython\$(LDVERSION)";;
|
||||
esac
|
||||
|
||||
# Main loop
|
||||
for i in ${*-Setup}
|
||||
do
|
||||
case $i in
|
||||
-n) echo '*noobjects*';;
|
||||
*) echo '*doconfig*'; cat "$i";;
|
||||
esac
|
||||
done |
|
||||
sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||
(
|
||||
rulesf="@rules.$$"
|
||||
trap 'rm -f $rulesf' 0 1 2 3
|
||||
echo "
|
||||
# Rules appended by makesetup
|
||||
" >$rulesf
|
||||
DEFS=
|
||||
BUILT=
|
||||
BUILT_SHARED=
|
||||
DISABLED=
|
||||
CONFIGURED=
|
||||
MODS=
|
||||
SHAREDMODS=
|
||||
OBJS=
|
||||
LIBS=
|
||||
LOCALLIBS=
|
||||
BASELIBS=
|
||||
while read line
|
||||
do
|
||||
# to handle backslashes for sh's that don't automatically
|
||||
# continue a read when the last char is a backslash
|
||||
while echo $line | grep '\\$' > /dev/null
|
||||
do
|
||||
read extraline
|
||||
line=`echo $line| sed s/.$//`$extraline
|
||||
done
|
||||
|
||||
# Output DEFS in reverse order so first definition overrides
|
||||
case $line in
|
||||
*=*) DEFS="$line$NL$DEFS"; continue;;
|
||||
'include '*) DEFS="$line$NL$DEFS"; continue;;
|
||||
'*noobjects*')
|
||||
case $noobjects in
|
||||
yes) ;;
|
||||
*) LOCALLIBS=$LIBS; LIBS=;;
|
||||
esac
|
||||
noobjects=yes;
|
||||
continue;;
|
||||
'*doconfig*') doconfig=yes; continue;;
|
||||
'*static*') doconfig=yes; continue;;
|
||||
'*noconfig*') doconfig=no; continue;;
|
||||
'*shared*') doconfig=no; continue;;
|
||||
'*disabled*') doconfig=disabled; continue;;
|
||||
esac
|
||||
srcs=
|
||||
cpps=
|
||||
libs=
|
||||
mods=
|
||||
mods_upper=
|
||||
skip=
|
||||
for arg in $line
|
||||
do
|
||||
case $skip in
|
||||
libs) libs="$libs $arg"; skip=; continue;;
|
||||
cpps) cpps="$cpps $arg"; skip=; continue;;
|
||||
srcs) srcs="$srcs $arg"; skip=; continue;;
|
||||
esac
|
||||
case $arg in
|
||||
-framework) libs="$libs $arg"; skip=libs;
|
||||
# OSX/OSXS/Darwin framework link cmd
|
||||
;;
|
||||
-[IDUCfF]*) cpps="$cpps $arg";;
|
||||
-Xcompiler) skip=cpps;;
|
||||
-Xlinker) libs="$libs $arg"; skip=libs;;
|
||||
-rpath) libs="$libs $arg"; skip=libs;;
|
||||
--rpath) libs="$libs $arg"; skip=libs;;
|
||||
-[A-Zl]*) libs="$libs $arg";;
|
||||
*.a) libs="$libs $arg";;
|
||||
*.so) libs="$libs $arg";;
|
||||
*.sl) libs="$libs $arg";;
|
||||
/*.o) libs="$libs $arg";;
|
||||
*.def) libs="$libs $arg";;
|
||||
*.o) srcs="$srcs `basename $arg .o`.c";;
|
||||
*.[cC]) srcs="$srcs $arg";;
|
||||
*.m) srcs="$srcs $arg";; # Objective-C src
|
||||
*.cc) srcs="$srcs $arg";;
|
||||
*.c++) srcs="$srcs $arg";;
|
||||
*.cxx) srcs="$srcs $arg";;
|
||||
*.cpp) srcs="$srcs $arg";;
|
||||
\$\(*_CFLAGS\)) cpps="$cpps $arg";;
|
||||
\$\(*_INCLUDES\)) cpps="$cpps $arg";;
|
||||
\$\(*_LIBS\)) libs="$libs $arg";;
|
||||
\$\(*_LDFLAGS\)) libs="$libs $arg";;
|
||||
\$\(*_RPATH\)) libs="$libs $arg";;
|
||||
\$*) libs="$libs $arg"
|
||||
cpps="$cpps $arg";;
|
||||
*.*) echo 1>&2 "bad word $arg in $line"
|
||||
exit 1;;
|
||||
-u) skip=libs; libs="$libs -u";;
|
||||
[a-zA-Z_]*)
|
||||
mods="$mods $arg"
|
||||
mods_upper=$(echo $mods | tr '[a-z]' '[A-Z]');;
|
||||
*) echo 1>&2 "bad word $arg in $line"
|
||||
exit 1;;
|
||||
esac
|
||||
done
|
||||
if test -z "$cpps" -a -z "$libs"; then
|
||||
cpps="\$(MODULE_${mods_upper}_CFLAGS)"
|
||||
libs="\$(MODULE_${mods_upper}_LDFLAGS)"
|
||||
fi
|
||||
for mod in $mods
|
||||
do
|
||||
case $CONFIGURED in
|
||||
*,${mod},*)
|
||||
# Detected multiple rules for a module, first rule wins. This
|
||||
# allows users to disable modules in Setup.local.
|
||||
echo 1>&2 "maksetup: '$mod' was handled by previous rule."
|
||||
continue 2;;
|
||||
esac
|
||||
CONFIGURED="$CONFIGURED,${mod},"
|
||||
done
|
||||
case $doconfig in
|
||||
yes)
|
||||
LIBS="$LIBS $libs"
|
||||
MODS="$MODS $mods"
|
||||
BUILT="$BUILT $mods"
|
||||
;;
|
||||
no)
|
||||
BUILT="$BUILT $mods"
|
||||
;;
|
||||
disabled)
|
||||
DISABLED="$DISABLED $mods"
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
case $noobjects in
|
||||
yes) continue;;
|
||||
esac
|
||||
objs=''
|
||||
for src in $srcs
|
||||
do
|
||||
case $src in
|
||||
*.c) obj=`basename $src .c`.o; cc='$(CC)';;
|
||||
*.cc) obj=`basename $src .cc`.o; cc='$(CXX)';;
|
||||
*.c++) obj=`basename $src .c++`.o; cc='$(CXX)';;
|
||||
*.C) obj=`basename $src .C`.o; cc='$(CXX)';;
|
||||
*.cxx) obj=`basename $src .cxx`.o; cc='$(CXX)';;
|
||||
*.cpp) obj=`basename $src .cpp`.o; cc='$(CXX)';;
|
||||
*.m) obj=`basename $src .m`.o; cc='$(CC)';; # Obj-C
|
||||
*) continue;;
|
||||
esac
|
||||
case $src in
|
||||
*/*) obj="$srcdir/`dirname $src`/$obj";;
|
||||
*) obj="$srcdir/$obj";;
|
||||
esac
|
||||
objs="$objs $obj"
|
||||
case $src in
|
||||
glmodule.c) ;;
|
||||
/*) ;;
|
||||
\$*) ;;
|
||||
*) src='$(srcdir)/'"$srcdir/$src";;
|
||||
esac
|
||||
# custom flags first, PY_STDMODULE_CFLAGS may contain -I with system libmpdec
|
||||
case $doconfig in
|
||||
no) cc="$cc $cpps \$(PY_STDMODULE_CFLAGS) \$(CCSHARED)";;
|
||||
*)
|
||||
cc="$cc $cpps \$(PY_BUILTIN_MODULE_CFLAGS)";;
|
||||
esac
|
||||
# force rebuild when header file or module build flavor (static/shared) is changed
|
||||
rule="$obj: $src \$(MODULE_${mods_upper}_DEPS) \$(PYTHON_HEADERS) Modules/config.c; $cc -c $src -o $obj"
|
||||
echo "$rule" >>$rulesf
|
||||
done
|
||||
case $doconfig in
|
||||
yes) OBJS="$OBJS $objs";;
|
||||
esac
|
||||
for mod in $mods
|
||||
do
|
||||
file="$srcdir/$mod\$(EXT_SUFFIX)"
|
||||
case $doconfig in
|
||||
no)
|
||||
SHAREDMODS="$SHAREDMODS $file"
|
||||
BUILT_SHARED="$BUILT_SHARED $mod"
|
||||
;;
|
||||
esac
|
||||
rule="$file: $objs"
|
||||
rule="$rule; \$(BLDSHARED) $objs $libs $ExtraLibs -o $file"
|
||||
echo "$rule" >>$rulesf
|
||||
done
|
||||
done
|
||||
|
||||
case $SHAREDMODS in
|
||||
'') ;;
|
||||
*) DEFS="SHAREDMODS=$SHAREDMODS$NL$DEFS";;
|
||||
esac
|
||||
|
||||
case $noobjects in
|
||||
yes) BASELIBS=$LIBS;;
|
||||
*) LOCALLIBS=$LIBS;;
|
||||
esac
|
||||
LIBS='$(LOCALMODLIBS) $(BASEMODLIBS)'
|
||||
DEFS="BASEMODLIBS=$BASELIBS$NL$DEFS"
|
||||
DEFS="LOCALMODLIBS=$LOCALLIBS$NL$DEFS"
|
||||
|
||||
EXTDECLS=
|
||||
INITBITS=
|
||||
for mod in $MODS
|
||||
do
|
||||
EXTDECLS="${EXTDECLS}extern PyObject* PyInit_$mod(void);$NL"
|
||||
INITBITS="${INITBITS} {\"$mod\", PyInit_$mod},$NL"
|
||||
done
|
||||
|
||||
|
||||
case $config in
|
||||
-) ;;
|
||||
*) sed -e "
|
||||
1i$NL/* Generated automatically from $config by makesetup. */
|
||||
/MARKER 1/i$NL$EXTDECLS
|
||||
|
||||
/MARKER 2/i$NL$INITBITS
|
||||
|
||||
" $config >config.c
|
||||
;;
|
||||
esac
|
||||
|
||||
case $makepre in
|
||||
-) ;;
|
||||
*)
|
||||
# macOS' sed has issues with 'a' command. Use 'r' command with an
|
||||
# external replacement file instead.
|
||||
sedf="@sed.in.$$"
|
||||
sedr="@sed.replace.$$"
|
||||
trap 'rm -f $sedf $sedr' 0 1 2 3
|
||||
echo "$NL$NL$DEFS" | sed 's/\\$//' > $sedr
|
||||
echo "1i\\" >$sedf
|
||||
str="# Generated automatically from $makepre by makesetup."
|
||||
echo "$str" >>$sedf
|
||||
echo "s%_MODBUILT_NAMES_%$BUILT%" >>$sedf
|
||||
echo "s%_MODSHARED_NAMES_%$BUILT_SHARED%" >>$sedf
|
||||
echo "s%_MODDISABLED_NAMES_%$DISABLED%" >>$sedf
|
||||
echo "s%_MODOBJS_%$OBJS%" >>$sedf
|
||||
echo "s%_MODLIBS_%$LIBS%" >>$sedf
|
||||
echo "/Definitions added by makesetup/r $sedr" >>$sedf
|
||||
sed -f $sedf $makepre >Makefile
|
||||
cat $rulesf >>Makefile
|
||||
rm -f $sedf $sedr
|
||||
;;
|
||||
esac
|
||||
|
||||
rm -f $rulesf
|
||||
)
|
||||
74
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/python-config.py
vendored
Executable file
74
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/python-config.py
vendored
Executable file
@@ -0,0 +1,74 @@
|
||||
#!/root/.julia/dev/ImageUtils/.CondaPkg/env/bin/python3.11
|
||||
# -*- python -*-
|
||||
|
||||
# Keep this script in sync with python-config.sh.in
|
||||
|
||||
import getopt
|
||||
import os
|
||||
import sys
|
||||
import sysconfig
|
||||
|
||||
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
|
||||
'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir',
|
||||
'embed']
|
||||
|
||||
def exit_with_usage(code=1):
|
||||
print("Usage: {0} [{1}]".format(
|
||||
sys.argv[0], '|'.join('--'+opt for opt in valid_opts)), file=sys.stderr)
|
||||
sys.exit(code)
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
|
||||
except getopt.error:
|
||||
exit_with_usage()
|
||||
|
||||
if not opts:
|
||||
exit_with_usage()
|
||||
|
||||
getvar = sysconfig.get_config_var
|
||||
pyver = getvar('VERSION')
|
||||
|
||||
opt_flags = [flag for (flag, val) in opts]
|
||||
|
||||
if '--help' in opt_flags:
|
||||
exit_with_usage(code=0)
|
||||
|
||||
for opt in opt_flags:
|
||||
if opt == '--prefix':
|
||||
print(getvar('prefix'))
|
||||
|
||||
elif opt == '--exec-prefix':
|
||||
print(getvar('exec_prefix'))
|
||||
|
||||
elif opt in ('--includes', '--cflags'):
|
||||
flags = ['-I' + sysconfig.get_path('include'),
|
||||
'-I' + sysconfig.get_path('platinclude')]
|
||||
if opt == '--cflags':
|
||||
flags.extend(getvar('CFLAGS').split())
|
||||
print(' '.join(flags))
|
||||
|
||||
elif opt in ('--libs', '--ldflags'):
|
||||
libs = []
|
||||
if '--embed' in opt_flags:
|
||||
libs.append('-lpython' + pyver + sys.abiflags)
|
||||
else:
|
||||
libpython = getvar('LIBPYTHON')
|
||||
if libpython:
|
||||
libs.append(libpython)
|
||||
libs.extend(getvar('LIBS').split() + getvar('SYSLIBS').split())
|
||||
|
||||
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
|
||||
# shared library in prefix/lib/.
|
||||
if opt == '--ldflags':
|
||||
if not getvar('Py_ENABLE_SHARED'):
|
||||
libs.insert(0, '-L' + getvar('LIBPL'))
|
||||
print(' '.join(libs))
|
||||
|
||||
elif opt == '--extension-suffix':
|
||||
print(getvar('EXT_SUFFIX'))
|
||||
|
||||
elif opt == '--abiflags':
|
||||
print(sys.abiflags)
|
||||
|
||||
elif opt == '--configdir':
|
||||
print(getvar('LIBPL'))
|
||||
BIN
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/python.o
vendored
Normal file
BIN
.CondaPkg/env/lib/python3.11/config-3.11-x86_64-linux-gnu/python.o
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user