<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Misc/python-config.sh.in, branch fix-namedexpr-comment</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-37925: Mention --embed in python-config usage (GH-15458)</title>
<updated>2019-08-26T21:45:36+00:00</updated>
<author>
<name>Batuhan Taşkaya</name>
<email>47358913+isidentical@users.noreply.github.com</email>
</author>
<published>2019-08-26T21:45:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d3cc189b17c86f670198aca109b5ffa2d526d87a'/>
<id>d3cc189b17c86f670198aca109b5ffa2d526d87a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36721: Add --embed option to python-config (GH-13500)</title>
<updated>2019-05-23T01:30:23+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-05-23T01:30:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0a8e57248b913851640c64375600f05157c997df'/>
<id>0a8e57248b913851640c64375600f05157c997df</id>
<content type='text'>
To embed Python into an application, a new --embed option must be
passed to "python3-config --libs --embed" to get "-lpython3.8" (link
the application to libpython). To support both 3.8 and older, try
"python3-config --libs --embed" first and fallback to "python3-config
--libs" (without --embed) if the previous command fails.

Add a pkg-config "python-3.8-embed" module to embed Python into an
application: "pkg-config python-3.8-embed --libs" includes
"-lpython3.8".  To support both 3.8 and older, try "pkg-config
python-X.Y-embed --libs" first and fallback to "pkg-config python-X.Y
--libs" (without --embed) if the previous command fails (replace
"X.Y" with the Python version).

On the other hand, "pkg-config python3.8 --libs" no longer contains
"-lpython3.8". C extensions must not be linked to libpython (except
on Android, case handled by the script); this change is backward
incompatible on purpose.

"make install" now also installs "python-3.8-embed.pc".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To embed Python into an application, a new --embed option must be
passed to "python3-config --libs --embed" to get "-lpython3.8" (link
the application to libpython). To support both 3.8 and older, try
"python3-config --libs --embed" first and fallback to "python3-config
--libs" (without --embed) if the previous command fails.

Add a pkg-config "python-3.8-embed" module to embed Python into an
application: "pkg-config python-3.8-embed --libs" includes
"-lpython3.8".  To support both 3.8 and older, try "pkg-config
python-X.Y-embed --libs" first and fallback to "pkg-config python-X.Y
--libs" (without --embed) if the previous command fails (replace
"X.Y" with the Python version).

On the other hand, "pkg-config python3.8 --libs" no longer contains
"-lpython3.8". C extensions must not be linked to libpython (except
on Android, case handled by the script); this change is backward
incompatible on purpose.

"make install" now also installs "python-3.8-embed.pc".</pre>
</div>
</content>
</entry>
<entry>
<title> bpo-21536: On Android, C extensions are linked to libpython (GH-12989)</title>
<updated>2019-04-29T07:27:40+00:00</updated>
<author>
<name>xdegaye</name>
<email>xdegaye@gmail.com</email>
</author>
<published>2019-04-29T07:27:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=254b309c801f82509597e3d7d4be56885ef94c11'/>
<id>254b309c801f82509597e3d7d4be56885ef94c11</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-21536: C extensions are no longer linked to libpython (GH-12946)</title>
<updated>2019-04-25T18:13:10+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-04-25T18:13:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b'/>
<id>8c3ecc6bacc8d0cd534f2b5b53ed962dd1368c7b</id>
<content type='text'>
On Unix, C extensions are no longer linked to libpython.

It is now possible to load a C extension built using a shared library
Python with a statically linked Python.

When Python is embedded, libpython must not be loaded with
RTLD_LOCAL, but RTLD_GLOBAL instead. Previously, using RTLD_LOCAL, it
was already not possible to load C extensions which were not linked
to libpython, like C extensions of the standard library built by the
"*shared*" section of Modules/Setup.

distutils, python-config and python-config.py have been modified.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Unix, C extensions are no longer linked to libpython.

It is now possible to load a C extension built using a shared library
Python with a statically linked Python.

When Python is embedded, libpython must not be loaded with
RTLD_LOCAL, but RTLD_GLOBAL instead. Previously, using RTLD_LOCAL, it
was already not possible to load C extensions which were not linked
to libpython, like C extensions of the standard library built by the
"*shared*" section of Modules/Setup.

distutils, python-config and python-config.py have been modified.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36508: python-config don't export LINKFORSHARED (GH-12661)</title>
<updated>2019-04-09T16:12:44+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-04-09T16:12:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e65f01f78d7bda3013fc5be485afa87ff56511d9'/>
<id>e65f01f78d7bda3013fc5be485afa87ff56511d9</id>
<content type='text'>
python-config --ldflags no longer includes flags of the LINKFORSHARED
variable. The LINKFORSHARED variable must only be used to build
executables.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
python-config --ldflags no longer includes flags of the LINKFORSHARED
variable. The LINKFORSHARED variable must only be used to build
executables.</pre>
</div>
</content>
</entry>
<entry>
<title>closes bpo-22140: Prevent double substitution of prefix in python-config.sh (#3769)</title>
<updated>2017-09-27T05:45:06+00:00</updated>
<author>
<name>Michał Górny</name>
<email>mgorny@gentoo.org</email>
</author>
<published>2017-09-27T05:45:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=14086cfc5eed8c5e78342d79e5db87a135d75fa8'/>
<id>14086cfc5eed8c5e78342d79e5db87a135d75fa8</id>
<content type='text'>
Fix the logic in python-config.sh to avoid attempting to substitute
prefix in a variable that might have already been subject to
substitution. This e.g. happened if @exec_prefix@ was defined as
"${prefix}" (which is the default of the configure script) -- in which
case the exec_prefix_build variable was initialized with
already-subtituted prefix, and then another round of substitution was
performed which might have resulted in duplicate prefix.

To avoid that, rename the variables so that the variables matching
likely configure names (prefix, exec_prefix) retain their original
values and a '_real' suffix is used for the real values of prefix.

Furthermore, replace the unnecessary prefix and exec_prefix
substitutions with direct prefix_real references since the sed
always replaced the whole string anyway by design.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the logic in python-config.sh to avoid attempting to substitute
prefix in a variable that might have already been subject to
substitution. This e.g. happened if @exec_prefix@ was defined as
"${prefix}" (which is the default of the configure script) -- in which
case the exec_prefix_build variable was initialized with
already-subtituted prefix, and then another round of substitution was
performed which might have resulted in duplicate prefix.

To avoid that, rename the variables so that the variables matching
likely configure names (prefix, exec_prefix) retain their original
values and a '_real' suffix is used for the real values of prefix.

Furthermore, replace the unnecessary prefix and exec_prefix
substitutions with direct prefix_real references since the sed
always replaced the whole string anyway by design.</pre>
</div>
</content>
</entry>
<entry>
<title>- Issue #25440: Fix output of python-config --extension-suffix.</title>
<updated>2015-10-19T12:07:57+00:00</updated>
<author>
<name>doko@ubuntu.com</name>
<email>doko@ubuntu.com</email>
</author>
<published>2015-10-19T12:07:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2bf91bf46cf5bf9913a126092a8d08bcd7a6157c'/>
<id>2bf91bf46cf5bf9913a126092a8d08bcd7a6157c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- Issue #18096: Fix library order returned by python-config.</title>
<updated>2014-10-02T00:00:14+00:00</updated>
<author>
<name>doko@ubuntu.com</name>
<email>doko@ubuntu.com</email>
</author>
<published>2014-10-02T00:00:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d486c43d8d5ddf6d8c31e37fa5525aac7b960059'/>
<id>d486c43d8d5ddf6d8c31e37fa5525aac7b960059</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- Issue #18257: Fix readlink usage in python-config.  Install the python</title>
<updated>2013-08-01T13:32:49+00:00</updated>
<author>
<name>doko@ubuntu.com</name>
<email>doko@ubuntu.com</email>
</author>
<published>2013-08-01T13:32:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0df35b0a57fef5276c09e92da9ea7aaf77476f61'/>
<id>0df35b0a57fef5276c09e92da9ea7aaf77476f61</id>
<content type='text'>
  version again on Darwin.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  version again on Darwin.
</pre>
</div>
</content>
</entry>
<entry>
<title>- Issue #16235: Implement python-config as a shell script.</title>
<updated>2013-01-26T10:39:31+00:00</updated>
<author>
<name>doko@python.org</name>
<email>doko@python.org</email>
</author>
<published>2013-01-26T10:39:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=874211978c8097b8e747c90fa3ff41aacabe340f'/>
<id>874211978c8097b8e747c90fa3ff41aacabe340f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
