Carl Meyer
b193fa996a
bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. (GH-6834)
...
In some development setups it is inconvenient or impossible to write bytecode
caches to the code tree, but the bytecode caches are still useful. The
PYTHONPYCACHEPREFIX environment variable allows specifying an alternate
location for cached bytecode files, within which a directory tree mirroring the code
tree will be created. This cache tree is then used (for both reading and writing)
instead of the local `__pycache__` subdirectory within each source directory.
Exposed at runtime as sys.pycache_prefix (defaulting to None), and can
be set from the CLI as "-X pycache_prefix=path".
Patch by Carl Meyer.
2018-06-16 14:40:56 +10:00
Barry Warsaw
ac1ee1bada
bpo-33755: Fix importlib.resources isolation tests ( #7412 )
2018-06-05 09:40:45 -07:00
Barry Warsaw
5ec0feeeec
Implement the get_resource_reader() API for file system imports ( #5168 )
2018-01-15 15:07:11 -08:00
Barry Warsaw
deae6b451f
bpo-32248 - Implement importlib.resources ( #4911 )
...
Port importlib_resources to importlib.resources
2017-12-30 15:18:06 -05:00
Brett Cannon
4106f61c4c
Merge for #27083
2016-07-16 10:45:16 -07:00
Brett Cannon
7ca63cb7cc
Fix regressions introduced by fixes for issue #27083 .
2016-07-16 10:44:13 -07:00
Brett Cannon
fdcdd9ed80
Issue #26896 : Disambiguate uses of "importer" with "finder".
...
Thanks to Oren Milman for the patch.
2016-07-08 11:00:00 -07:00
Eric Snow
183a941bc1
Issue #24192 : Fix namespace package imports.
2015-05-15 21:54:59 -06:00
Eric Snow
3497c0bf95
Issue #21503 : Use test_both() consistently in test_importlib.
2014-05-16 11:40:40 -06:00
Brett Cannon
732ac654c8
Issue #19721 : Consolidate test_importlib utility code into a single
...
module.
2014-05-09 14:32:57 -04:00
Eric Snow
6029e08691
Issue 19944: Fix importlib.find_spec() so it imports parents as needed.
...
The function is also moved to importlib.util.
2014-01-25 15:32:46 -07:00
Brett Cannon
86aae6a7b3
Issue #19712 : Update test.test_importlib.import_ to test/use PEP 451
...
where appropriate.
2013-12-06 12:07:25 -05:00
Brett Cannon
873d1226b7
Make test_importlib output easier to trace back to the failing test
...
class.
2013-11-22 14:47:09 -05:00
Brett Cannon
1340049f65
Issue #16803 : Move test_importlib.test_util to use both frozen and
...
source code.
2013-10-18 15:40:11 -04:00
Brett Cannon
3ad327ec3a
Issue #16803 : Run test.test_importlib.test_abc under both
...
_frozen_importlib and source.
2013-10-04 14:47:14 -04:00
Brett Cannon
ef888024d8
Issue #17177 : stop using imp in test_importlib
2013-06-15 18:39:21 -04:00
Brett Cannon
45a5e3afe5
Issue #15168 : Move importlb.test to test.test_importlib.
...
This should make the Linux distros happy as it is now easier to leave
importlib's tests out of their base Python distribution.
2012-07-20 14:48:53 -04:00