| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2380,10 +2380,10 @@ \section{A Cookbook Approach \label{win-cookbook}} | |||
| 2380 | 2380 | ||
| 2381 | 2381 | Grab the binary installer from \url{http://www.python.org/} and | |
| 2382 | 2382 | install Python. The binary installer has all of the required header | |
| 2383 | - files except for \file{config.h}. | ||
| 2383 | + files except for \file{pyconfig.h}. | ||
| 2384 | 2384 | ||
| 2385 | 2385 | Get the source distribution and extract it into a convenient location. | |
| 2386 | - Copy the \file{config.h} from the \file{PC/} directory into the | ||
| 2386 | + Copy the \file{pyconfig.h} from the \file{PC/} directory into the | ||
| 2387 | 2387 | \file{include/} directory created by the installer. | |
| 2388 | 2388 | ||
| 2389 | 2389 | Create a \file{Setup} file for your extension module, as described in | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -140,7 +140,7 @@ \section{Built-in Exceptions} | |||
| 140 | 140 | always defined, but can only be raised when Python is configured | |
| 141 | 141 | with the \longprogramopt{with-fpectl} option, or the | |
| 142 | 142 | \constant{WANT_SIGFPE_HANDLER} symbol is defined in the | |
| 143 | - \file{config.h} file. | ||
| 143 | + \file{pyconfig.h} file. | ||
| 144 | 144 | \end{excdesc} | |
| 145 | 145 | ||
| 146 | 146 | \begin{excdesc}{IOError} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -129,7 +129,7 @@ \section{\module{sys} --- | |||
| 129 | 129 | also \code{'/usr/local'}. This can be set at build time with the | |
| 130 | 130 | \longprogramopt{exec-prefix} argument to the \program{configure} | |
| 131 | 131 | script. Specifically, all configuration files (e.g. the | |
| 132 | - \file{config.h} header file) are installed in the directory | ||
| 132 | + \file{pyconfig.h} header file) are installed in the directory | ||
| 133 | 133 | \code{exec_prefix + '/lib/python\var{version}/config'}, and shared | |
| 134 | 134 | library modules are installed in \code{exec_prefix + | |
| 135 | 135 | '/lib/python\var{version}/lib-dynload'}, where \var{version} is | |
@@ -298,7 +298,7 @@ \section{\module{sys} --- | |||
| 298 | 298 | the \longprogramopt{prefix} argument to the \program{configure} | |
| 299 | 299 | script. The main collection of Python library modules is installed | |
| 300 | 300 | in the directory \code{prefix + '/lib/python\var{version}'} while | |
| 301 | - the platform independent header files (all except \file{config.h}) | ||
| 301 | + the platform independent header files (all except \file{pyconfig.h}) | ||
| 302 | 302 | are stored in \code{prefix + '/include/python\var{version}'}, where | |
| 303 | 303 | \var{version} is equal to \code{version[:3]}. | |
| 304 | 304 | \end{datadesc} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ | |||
| 21 | 21 | /* Include nearly all Python header files */ | |
| 22 | 22 | ||
| 23 | 23 | #include "patchlevel.h" | |
| 24 | - #include "config.h" | ||
| 24 | + #include "pyconfig.h" | ||
| 25 | 25 | ||
| 26 | 26 | #ifdef HAVE_LIMITS_H | |
| 27 | 27 | #include <limits.h> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ extern "C" { | |||
| 7 | 7 | ||
| 8 | 8 | /* Include files and extern declarations used by most of the parser. */ | |
| 9 | 9 | ||
| 10 | - #include "config.h" | ||
| 10 | + #include "pyconfig.h" | ||
| 11 | 11 | ||
| 12 | 12 | /* config.h may or may not define DL_IMPORT */ | |
| 13 | 13 | #ifndef DL_IMPORT /* declarations for DLL import/export */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | #ifndef Py_PYPORT_H | |
| 2 | 2 | #define Py_PYPORT_H | |
| 3 | 3 | ||
| 4 | - #include "config.h" /* include for defines */ | ||
| 4 | + #include "pyconfig.h" /* include for defines */ | ||
| 5 | 5 | ||
| 6 | 6 | /************************************************************************** | |
| 7 | 7 | Symbols and macros to supply platform-independent interfaces to basic | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -125,7 +125,7 @@ def finalize_options (self): | |||
| 125 | 125 | self.extensions = self.distribution.ext_modules | |
| 126 | 126 | ||
| 127 | 127 | ||
| 128 | - # Make sure Python's include directories (for Python.h, config.h, | ||
| 128 | + # Make sure Python's include directories (for Python.h, pyconfig.h, | ||
| 129 | 129 | # etc.) are in the include search path. | |
| 130 | 130 | py_include = sysconfig.get_python_inc() | |
| 131 | 131 | plat_py_include = sysconfig.get_python_inc(plat_specific=1) | |
@@ -592,7 +592,7 @@ def get_libraries (self, ext): | |||
| 592 | 592 | """ | |
| 593 | 593 | # The python library is always needed on Windows. For MSVC, this | |
| 594 | 594 | # is redundant, since the library is mentioned in a pragma in | |
| 595 | - # config.h that MSVC groks. The other Windows compilers all seem | ||
| 595 | + # pyconfig.h that MSVC groks. The other Windows compilers all seem | ||
| 596 | 596 | # to need it mentioned explicitly, though, so that's what we do. | |
| 597 | 597 | # Append '_d' to the python import library on debug builds. | |
| 598 | 598 | from distutils.msvccompiler import MSVCCompiler | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ def __init__ (self, | |||
| 73 | 73 | (status, details)) | |
| 74 | 74 | if status is not CONFIG_H_OK: | |
| 75 | 75 | self.warn( | |
| 76 | - "Python's config.h doesn't seem to support your compiler. " + | ||
| 76 | + "Python's pyconfig.h doesn't seem to support your compiler. " + | ||
| 77 | 77 | ("Reason: %s." % details) + | |
| 78 | 78 | "Compiling may fail because of undefined preprocessor macros.") | |
| 79 | 79 | ||
@@ -335,7 +335,7 @@ def __init__ (self, | |||
| 335 | 335 | ||
| 336 | 336 | # class Mingw32CCompiler | |
| 337 | 337 | ||
| 338 | - # Because these compilers aren't configured in Python's config.h file by | ||
| 338 | + # Because these compilers aren't configured in Python's pyconfig.h file by | ||
| 339 | 339 | # default, we should at least warn the user if he is using a unmodified | |
| 340 | 340 | # version. | |
| 341 | 341 | ||
@@ -345,29 +345,29 @@ def __init__ (self, | |||
| 345 | 345 | ||
| 346 | 346 | def check_config_h(): | |
| 347 | 347 | ||
| 348 | - """Check if the current Python installation (specifically, config.h) | ||
| 348 | + """Check if the current Python installation (specifically, pyconfig.h) | ||
| 349 | 349 | appears amenable to building extensions with GCC. Returns a tuple | |
| 350 | 350 | (status, details), where 'status' is one of the following constants: | |
| 351 | 351 | CONFIG_H_OK | |
| 352 | 352 | all is well, go ahead and compile | |
| 353 | 353 | CONFIG_H_NOTOK | |
| 354 | 354 | doesn't look good | |
| 355 | 355 | CONFIG_H_UNCERTAIN | |
| 356 | - not sure -- unable to read config.h | ||
| 356 | + not sure -- unable to read pyconfig.h | ||
| 357 | 357 | 'details' is a human-readable string explaining the situation. | |
| 358 | 358 | ||
| 359 | 359 | Note there are two ways to conclude "OK": either 'sys.version' contains | |
| 360 | 360 | the string "GCC" (implying that this Python was built with GCC), or the | |
| 361 | - installed "config.h" contains the string "__GNUC__". | ||
| 361 | + installed "pyconfig.h" contains the string "__GNUC__". | ||
| 362 | 362 | """ | |
| 363 | 363 | ||
| 364 | 364 | # XXX since this function also checks sys.version, it's not strictly a | |
| 365 | - # "config.h" check -- should probably be renamed... | ||
| 365 | + # "pyconfig.h" check -- should probably be renamed... | ||
| 366 | 366 | ||
| 367 | 367 | from distutils import sysconfig | |
| 368 | 368 | import string | |
| 369 | 369 | # if sys.version contains GCC then python was compiled with | |
| 370 | - # GCC, and the config.h file should be OK | ||
| 370 | + # GCC, and the pyconfig.h file should be OK | ||
| 371 | 371 | if string.find(sys.version,"GCC") >= 0: | |
| 372 | 372 | return (CONFIG_H_OK, "sys.version mentions 'GCC'") | |
| 373 | 373 | ||
@@ -386,7 +386,7 @@ def check_config_h(): | |||
| 386 | 386 | "couldn't read '%s': %s" % (fn, exc.strerror)) | |
| 387 | 387 | ||
| 388 | 388 | else: | |
| 389 | - # "config.h" contains an "#ifdef __GNUC__" or something similar | ||
| 389 | + # "pyconfig.h" contains an "#ifdef __GNUC__" or something similar | ||
| 390 | 390 | if string.find(s,"__GNUC__") >= 0: | |
| 391 | 391 | return (CONFIG_H_OK, "'%s' mentions '__GNUC__'" % fn) | |
| 392 | 392 | else: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ def get_python_inc(plat_specific=0, prefix=None): | |||
| 43 | 43 | If 'plat_specific' is false (the default), this is the path to the | |
| 44 | 44 | non-platform-specific header files, i.e. Python.h and so on; | |
| 45 | 45 | otherwise, this is the path to platform-specific header files | |
| 46 | - (namely config.h). | ||
| 46 | + (namely pyconfig.h). | ||
| 47 | 47 | ||
| 48 | 48 | If 'prefix' is supplied, use it instead of sys.prefix or | |
| 49 | 49 | sys.exec_prefix -- i.e., ignore 'plat_specific'. | |
@@ -137,10 +137,10 @@ def customize_compiler(compiler): | |||
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | 139 | def get_config_h_filename(): | |
| 140 | - """Return full pathname of installed config.h file.""" | ||
| 140 | + """Return full pathname of installed pyconfig.h file.""" | ||
| 141 | 141 | if python_build: inc_dir = '.' | |
| 142 | 142 | else: inc_dir = get_python_inc(plat_specific=1) | |
| 143 | - return os.path.join(inc_dir, "config.h") | ||
| 143 | + return os.path.join(inc_dir, "pyconfig.h") | ||
| 144 | 144 | ||
| 145 | 145 | ||
| 146 | 146 | def get_makefile_filename(): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -118,7 +118,7 @@ SRCDIRS= @SRCDIRS@ | |||
| 118 | 118 | SUBDIRSTOO= Include Lib Misc Demo | |
| 119 | 119 | ||
| 120 | 120 | # Files and directories to be distributed | |
| 121 | - CONFIGFILES= configure configure.in acconfig.h config.h.in Makefile.pre.in | ||
| 121 | + CONFIGFILES= configure configure.in acconfig.h pyconfig.h.in Makefile.pre.in | ||
| 122 | 122 | DISTFILES= README ChangeLog $(CONFIGFILES) | |
| 123 | 123 | DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy | |
| 124 | 124 | DIST= $(DISTFILES) $(DISTDIRS) | |
@@ -417,7 +417,7 @@ Mac/Python/macglue.o: $(srcdir)/Mac/Python/macglue.c | |||
| 417 | 417 | ||
| 418 | 418 | PYTHON_HEADERS= \ | |
| 419 | 419 | Include/Python.h \ | |
| 420 | - config.h \ | ||
| 420 | + pyconfig.h \ | ||
| 421 | 421 | Include/patchlevel.h \ | |
| 422 | 422 | Include/pyport.h \ | |
| 423 | 423 | Include/pymem.h \ | |
@@ -650,7 +650,7 @@ inclinstall: | |||
| 650 | 650 | echo $(INSTALL_DATA) $$i $(INCLUDEPY); \ | |
| 651 | 651 | $(INSTALL_DATA) $$i $(INCLUDEPY); \ | |
| 652 | 652 | done | |
| 653 | - $(INSTALL_DATA) config.h $(CONFINCLUDEPY)/config.h | ||
| 653 | + $(INSTALL_DATA) pyconfig.h $(CONFINCLUDEPY)/pyconfig.h | ||
| 654 | 654 | ||
| 655 | 655 | # Install the library and miscellaneous stuff needed for extending/embedding | |
| 656 | 656 | # This goes into $(exec_prefix) | |
@@ -732,7 +732,7 @@ recheck: | |||
| 732 | 732 | $(SHELL) config.status --recheck | |
| 733 | 733 | $(SHELL) config.status | |
| 734 | 734 | ||
| 735 | - # Rebuild the configure script from configure.in; also rebuild config.h.in | ||
| 735 | + # Rebuild the configure script from configure.in; also rebuild pyconfig.h.in | ||
| 736 | 736 | autoconf: | |
| 737 | 737 | (cd $(srcdir); autoconf) | |
| 738 | 738 | (cd $(srcdir); autoheader) | |
@@ -762,7 +762,7 @@ clean: | |||
| 762 | 762 | clobber: clean | |
| 763 | 763 | -rm -f $(PYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ | |
| 764 | 764 | tags TAGS \ | |
| 765 | - config.cache config.log config.h Modules/config.c | ||
| 765 | + config.cache config.log pyconfig.h Modules/config.c | ||
| 766 | 766 | -rm -rf build platform | |
| 767 | 767 | ||
| 768 | 768 | # Make things extra clean, before making a distribution: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments