<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/compileall.py, branch 3.10</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/compileall.py?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/compileall.py?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-12-23T20:39:55Z</updated>
<entry>
<title>bpo-40447: accept all path-like objects in compileall.compile_file (GH-19883)</title>
<updated>2022-12-23T20:39:55Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-12-23T20:39:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c4b8cca09342734eb04fc1093d5952a2317dfb7'/>
<id>urn:sha1:9c4b8cca09342734eb04fc1093d5952a2317dfb7</id>
<content type='text'>
(cherry picked from commit 1ecfd1ebf1f53ef6ac82085b25ed09952b470d4e)

Co-authored-by: Filipe Laíns &lt;lains@riseup.net&gt;
Signed-off-by: Filipe Laíns &lt;lains@archlinux.org&gt;
Signed-off-by: Filipe Laíns &lt;lains@riseup.net&gt;
Co-authored-by: Irit Katriel &lt;1055913+iritkatriel@users.noreply.github.com&gt;
Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>Fix missing space with help for `-m compileall -o` (GH-27591) (GH-28430)</title>
<updated>2021-09-17T23:02:32Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-09-17T23:02:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8a5f14e5baea6eeb95a7af65370da8861e3c3227'/>
<id>urn:sha1:8a5f14e5baea6eeb95a7af65370da8861e3c3227</id>
<content type='text'>
(cherry picked from commit 74cc2453ae690be940cddfae8caf8216d8628c4a)

Co-authored-by: Daniel Hahler &lt;git@thequod.de&gt;</content>
</entry>
<entry>
<title>[3.10] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708)</title>
<updated>2021-08-24T15:09:14Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-08-24T15:09:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0af681b652c43f0ba90988400ecc1e7934fbfc5d'/>
<id>urn:sha1:0af681b652c43f0ba90988400ecc1e7934fbfc5d</id>
<content type='text'>
(cherry picked from commit bb21e28fd08f894ceff2405544a2f257d42b1354)

Co-authored-by: Ammar Askar &lt;ammar@ammaraskar.com&gt;
Co-authored-by: Stéphane Wirtel &lt;stephane@wirtel.be&gt;</content>
</entry>
<entry>
<title>bpo-44666: Use default encoding as fallback for compile_file (GH-27236) (GH-27488)</title>
<updated>2021-07-30T17:12:05Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-07-30T17:12:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0db6c143ae5f04d223fdb2c94b820f16714b0a09'/>
<id>urn:sha1:0db6c143ae5f04d223fdb2c94b820f16714b0a09</id>
<content type='text'>
When sys.stdout.encoding is None compile_file will fall back to
sys.getdefaultencoding to encode/decode error messages.

Co-authored-by: Stefan Hoelzl &lt;stefan.hoelzl@posteo.de&gt;
Co-authored-by: Mickaël Schoentgen &lt;contact@tiger-222.fr&gt;
(cherry picked from commit 80f07076294bc09a55ed76d9bbf307404eef25e6)</content>
</entry>
<entry>
<title>bpo-43651: Fix test_compileall with PEP 597 (GH-25128)</title>
<updated>2021-04-02T00:01:57Z</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2021-04-02T00:01:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=80017752ba938852d53f9d83a404b4ecd9ff2baa'/>
<id>urn:sha1:80017752ba938852d53f9d83a404b4ecd9ff2baa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-40692: Run more test_concurrent_futures tests (GH-20239)</title>
<updated>2021-02-08T03:15:51Z</updated>
<author>
<name>Asheesh Laroia</name>
<email>github@asheesh.org</email>
</author>
<published>2021-02-08T03:15:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bf2e7e55d7306b1e2fce7dce767e8df5ff42cf1c'/>
<id>urn:sha1:bf2e7e55d7306b1e2fce7dce767e8df5ff42cf1c</id>
<content type='text'>
In the case of multiprocessing.synchronize() being missing, the
test_concurrent_futures test suite now skips only the tests that
require multiprocessing.synchronize().

Validate that multiprocessing.synchronize exists as part of
_check_system_limits(), allowing ProcessPoolExecutor to raise
NotImplementedError during __init__, rather than crashing with
ImportError during __init__ when creating a lock imported from
multiprocessing.synchronize.

Use _check_system_limits() to disable tests of
ProcessPoolExecutor on systems without multiprocessing.synchronize.

Running the test suite without multiprocessing.synchronize reveals
that Lib/compileall.py crashes when it uses a ProcessPoolExecutor.
Therefore, change Lib/compileall.py to call _check_system_limits()
before creating the ProcessPoolExecutor.

Note that both Lib/compileall.py and Lib/test/test_compileall.py
were attempting to sanity-check ProcessPoolExecutor by expecting
ImportError. In multiprocessing.resource_tracker, sem_unlink() is also absent
on platforms where POSIX semaphores aren't available. Avoid using
sem_unlink() if it, too, does not exist.

Co-authored-by: Pablo Galindo &lt;Pablogsal@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-40495: compileall option to hardlink duplicate pyc files (GH-19901)</title>
<updated>2020-05-14T14:17:22Z</updated>
<author>
<name>Lumír 'Frenzy' Balhar</name>
<email>lbalhar@redhat.com</email>
</author>
<published>2020-05-14T14:17:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e77d428856fbd339faee44ff47214eda5fb51d57'/>
<id>urn:sha1:e77d428856fbd339faee44ff47214eda5fb51d57</id>
<content type='text'>
compileall is now able to use hardlinks to prevent duplicates in a
case when .pyc files for different optimization levels have the same content.

Co-authored-by: Miro Hrončok &lt;miro@hroncok.cz&gt;
Co-authored-by: Victor Stinner &lt;vstinner@python.org&gt;</content>
</entry>
<entry>
<title>compileall: Fix typos in docstring (GH-19810)</title>
<updated>2020-04-30T10:39:11Z</updated>
<author>
<name>Jelle Zijlstra</name>
<email>jelle.zijlstra@gmail.com</email>
</author>
<published>2020-04-30T10:39:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=efb8dd5b3ec91f7d9458d3f203d748604d52b121'/>
<id>urn:sha1:efb8dd5b3ec91f7d9458d3f203d748604d52b121</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-39769: Fix compileall ddir for subpkgs. (GH-18676)</title>
<updated>2020-02-29T01:28:37Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2020-02-29T01:28:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=02673352b5db6ca4d3dc804965facbedfe66425d'/>
<id>urn:sha1:02673352b5db6ca4d3dc804965facbedfe66425d</id>
<content type='text'>
Fix compileall.compile_dir() ddir= behavior on sub-packages.

Fixes compileall.compile_dir's ddir parameter and compileall command
line flag `-d` to no longer write the wrong pathname to the generated
pyc file for submodules beneath the root of the directory tree being
compiled.  This fixes a regression introduced with Python 3.5.

Also marks the _new_ in 3.9 from PR #16012 parameters to compile_dir as keyword only (as that is the only way they will be used) and fixes an omission of them in one place from the docs.</content>
</entry>
<entry>
<title>bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789)</title>
<updated>2019-10-15T09:26:13Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-10-15T09:26:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eb1dda2b56f67f09352c303588c28880c471ae87'/>
<id>urn:sha1:eb1dda2b56f67f09352c303588c28880c471ae87</id>
<content type='text'>
Fix test_compile_dir_maxlevels() on Windows without long path
support: only create 3 subdirectories instead of between 20 and 100
subdirectories.

Fix also compile_dir() to use the current sys.getrecursionlimit()
value as the default maxlevels value, rather than using
sys.getrecursionlimit() value read at startup.</content>
</entry>
</feed>
