Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Always freeze both posixpath and ntpath.
  • Loading branch information
ericsnowcurrently committed Sep 15, 2021
commit d0a8764a22a27b995acb683569ca32e8a349af98
6 changes: 6 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,11 @@ Python/frozen_modules/genericpath.h: Programs/_freeze_module Lib/genericpath.py
$(srcdir)/Lib/genericpath.py \
$(srcdir)/Python/frozen_modules/genericpath.h

Python/frozen_modules/ntpath.h: Programs/_freeze_module Lib/ntpath.py
$(srcdir)/Programs/_freeze_module ntpath \
$(srcdir)/Lib/ntpath.py \
$(srcdir)/Python/frozen_modules/ntpath.h

Python/frozen_modules/posixpath.h: Programs/_freeze_module Lib/posixpath.py
$(srcdir)/Programs/_freeze_module posixpath \
$(srcdir)/Lib/posixpath.py \
Expand Down Expand Up @@ -1046,6 +1051,7 @@ FROZEN_FILES = \
$(srcdir)/Python/frozen_modules/_collections_abc.h \
$(srcdir)/Python/frozen_modules/_sitebuiltins.h \
$(srcdir)/Python/frozen_modules/genericpath.h \
$(srcdir)/Python/frozen_modules/ntpath.h \
$(srcdir)/Python/frozen_modules/posixpath.h \
$(srcdir)/Python/frozen_modules/stat.h \
$(srcdir)/Python/frozen_modules/hello.h
Expand Down
2 changes: 2 additions & 0 deletions Python/frozen.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "frozen_modules/_collections_abc.h"
#include "frozen_modules/_sitebuiltins.h"
#include "frozen_modules/genericpath.h"
#include "frozen_modules/ntpath.h"
#include "frozen_modules/posixpath.h"
#include "frozen_modules/stat.h"
#include "frozen_modules/hello.h"
Expand All @@ -68,6 +69,7 @@ static const struct _frozen _PyImport_FrozenModules[] = {
(int)sizeof(_Py_M___collections_abc)},
{"_sitebuiltins", _Py_M___sitebuiltins, (int)sizeof(_Py_M___sitebuiltins)},
{"genericpath", _Py_M__genericpath, (int)sizeof(_Py_M__genericpath)},
{"ntpath", _Py_M__ntpath, (int)sizeof(_Py_M__ntpath)},
{"posixpath", _Py_M__posixpath, (int)sizeof(_Py_M__posixpath)},
{"stat", _Py_M__stat, (int)sizeof(_Py_M__stat)},

Expand Down
1 change: 1 addition & 0 deletions Python/frozen_modules/MANIFEST

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading