⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setup

📁 minimal python variant for small footprint apps like embedded apps
💻
📖 第 1 页 / 共 2 页
字号:
# -*- 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.  The file Setup itself is initially copied from# Setup.in; once it exists it will not be overwritten, so you can edit# Setup to your heart's content.  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.# Comment out lines to suppress modules.# 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## Finally, if a line contains just the word "*shared*" (without the# quotes but with the stars), then the following modules 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, but 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*.)## In addition, *static* reverses this effect (negating a previous# *shared* line).# NOTE: As a standard policy, as many modules as can be supported by a# platform should be present.  The distribution comes with all modules# enabled that are supported by most platforms and don't require you# to ftp sources from elsewhere.# 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-emptySITEPATH=# Standard path components for test modulesTESTPATH=# Path components for machine- or system-dependent modules and shared librariesMACHDEPPATH=:plat-$(MACHDEP)COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)PYTHONPATH=$(COREPYTHONPATH)# The modules listed here can't be built as shared libraries for# various reasons; therefore they are listed here instead of in the# normal order.# Some modules that are normally always on:#regex regexmodule.c regexpr.c	# Regular expressions, GNU Emacs style#pcre pcremodule.c pypcre.c	# Regular expressions, Perl style (for re.py)#posix posixmodule.c		# posix (UNIX) system calls#signal signalmodule.c		# signal(2)# PalmOS related modules:socket palm_socketmodule.cselect palm_selectmodule.ctime   palm_timemodule.c#errno  palm_errnomodule.cpalmsys palmsysmodule.cpalmdm palmdmmodule.cpalmnet palmnetmodule.cpalmevent palmeventmodule.cpalmform palmformmodule.c#palmserver palmservermodule.c -I../Serverpalmemu palmemumodule.c# Digital Creations' cStringIO and cPicklecStringIO cStringIO.ccPickle cPickle.cPALM_EXAMPLES= /home/jcollins/PALM/Examples# Comment the following if you don't have the PalmOS Example sourcespalmapps palmappsmodule.c -I$(PALM_EXAMPLES)/Memo/Src -I$(PALM_EXAMPLES)/Datebook/Src -I$(PALM_EXAMPLES)/ToDo/Src -I$(PALM_EXAMPLES)/Address/Src# The SGI specific GL module:#GLHACK=-Dclear=__GLclear#gl glmodule.c cgensupport.c -I$(srcdir) $(GLHACK) -lgl -lX11# The thread module is now automatically enabled, see Setup.thread.# Pure module.  Cannot be linked dynamically.# -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE#WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE#PURE_INCLS=-I/usr/local/include#PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs#pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)# 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* reverses this effect):#*shared*# GNU readline.  Unlike previous Python incarnations, GNU readline is# now incorporated in an optional module, configured in the Setup file# instead of by a configure script switch.  You may have to insert a# -L option pointing to the directory where libreadline.* lives,# and you may have to change -ltermcap to -ltermlib or perhaps remove# it, depending on your system -- see the GNU readline instructions.# It's okay for this to be a shared library, too.#readline readline.c -lreadline -ltermcap# Modules that should always be present (non UNIX dependent):#array arraymodule.c	# array objects#cmath cmathmodule.c # -lm # complex math library functions#math mathmodule.c # -lm # math library functions, e.g. sin()#strop stropmodule.c	# fast string operations implemented in C#struct structmodule.c	# binary structure packing/unpacking#time timemodule.c # -lm # time operations and variables#operator operator.c	# operator.add() and similar goodies#_locale _localemodule.c  # access to ISO C locale support# Modules with some UNIX dependencies -- on by default:# (If you have a really backward UNIX, select and socket may not be# supported...)#fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)#pwd pwdmodule.c		# pwd(3) #grp grpmodule.c		# grp(3)#errno errnomodule.c	# posix (UNIX) errno values#select selectmodule.c	# select(2); not on ancient System V#socket socketmodule.c	# socket(2); not on ancient System V#_socket socketmodule.c	# socket(2); use this one for BeOS sockets# Socket module compiled with SSL support; you must edit the SSL variable:#SSL=/usr/local/ssl#socket socketmodule.c \#	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \#	-L$(SSL)/lib -lssl -lcrypto# The crypt module is now disabled by default because it breaks builds# on many systems (where -lcrypt is needed), e.g. Linux (I believe).#crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems# Some more UNIX dependent modules -- off by default, since these# are not supported by all UNIX systems:#nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere#termios termios.c	# Steen Lumholt's termios module#resource resource.c	# Jeremy Hylton's rlimit interface# Multimedia modules -- off by default.# These don't work for 64-bit platforms!!!# These represent audio samples or images as strings:#audioop audioop.c	# Operations on audio samples#imageop imageop.c	# Operations on images#rgbimg rgbimgmodule.c   # Read SGI RGB image files (but coded portably)# The stdwin module provides a simple, portable (between X11 and Mac)# windowing interface.  You need to ftp the STDWIN library, e.g. from# ftp://ftp.cwi.nl/pub/stdwin.  (If you get it elsewhere, be sure to# get version 1.0 or higher!)  The STDWIN variable must point to the# STDWIN toplevel directory.# Uncomment and edit as needed:#STDWIN=/ufs/guido/src/stdwin# Uncomment these lines:#STDWINPATH=:lib-stdwin#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11# Use this instead of the last two lines above for alphanumeric stdwin:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -