Skip to content

Instantly share code, notes, and snippets.

@smurugap
Last active December 21, 2019 05:57
Show Gist options
  • Save smurugap/f8f3ce8b96da33d9ad5c782a4c53ff0e to your computer and use it in GitHub Desktop.
Save smurugap/f8f3ce8b96da33d9ad5c782a4c53ff0e to your computer and use it in GitHub Desktop.
Setup.local file for python compilation
root@msenthil-ub16:~/Python-2.7.16# cat Modules/Setup.local | grep -v '^#' | grep -v '^$'
DESTLIB=$(LIBDEST)
MACHDESTLIB=$(BINLIBDEST)
DESTPATH=
SITEPATH=
TESTPATH=
MACHDEPPATH=:$(PLATDIR)
EXTRAMACHDEPPATH=
TKPATH=:lib-tk
OLDPATH=:lib-old
COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)$(TKPATH)$(OLDPATH)
PYTHONPATH=$(COREPYTHONPATH)
posix posixmodule.c # posix (UNIX) system calls
errno errnomodule.c # posix (UNIX) errno values
pwd pwdmodule.c # this is needed to find out the user's home dir
# if $HOME is not set
_sre _sre.c # Fredrik Lundh's new regular expressions
_codecs _codecsmodule.c # access to the builtin codecs and codec registry
_weakref _weakref.c # weak references
zipimport zipimport.c
_symtable symtablemodule.c
*static*
readline readline.c -lreadline -ltermcap
math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
_struct _struct.c # binary structure packing/unpacking
time timemodule.c # -lm # time operations and variables
_random _randommodule.c # Random number generator
_collections _collectionsmodule.c # Container types
itertools itertoolsmodule.c # Functions creating iterators for efficient looping
_functools _functoolsmodule.c # Tools for working with functions and callable objects
_io -I$(srcdir)/Modules/_io _io/bufferedio.c _io/bytesio.c _io/fileio.c _io/iobase.c _io/_iomodule.c _io/stringio.c _io/textio.c
_socket socketmodule.c timemodule.c
fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
select selectmodule.c # select(2); not on ancient System V
GLHACK=-Dclear=__GLclear
operator operator.c # operator.add() and similar goodies
_md5 md5module.c md5.c
_sha shamodule.c
_sha256 sha256module.c
_sha512 sha512module.c
binascii binascii.c
cStringIO cStringIO.c
xxsubtype xxsubtype.c
future_builtins future_builtins.c
array arraymodule.c
datetime datetimemodule.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment