Skip to content
Closed
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
freeze _sysconfig
Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Oct 22, 2021
commit 3e25a85fc5e931376b965c44a3621f37c9d196aa
5 changes: 5 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ FROZEN_FILES_IN = \
Lib/io.py \
Lib/_collections_abc.py \
Lib/_sitebuiltins.py \
Lib/_sysconfig.py \
Lib/genericpath.py \
Lib/ntpath.py \
Lib/posixpath.py \
Expand All @@ -768,6 +769,7 @@ FROZEN_FILES_OUT = \
Python/frozen_modules/io.h \
Python/frozen_modules/_collections_abc.h \
Python/frozen_modules/_sitebuiltins.h \
Python/frozen_modules/_sysconfig.h \
Python/frozen_modules/genericpath.h \
Python/frozen_modules/ntpath.h \
Python/frozen_modules/posixpath.h \
Expand Down Expand Up @@ -813,6 +815,9 @@ Python/frozen_modules/_collections_abc.h: Programs/_freeze_module Lib/_collectio
Python/frozen_modules/_sitebuiltins.h: Programs/_freeze_module Lib/_sitebuiltins.py
Programs/_freeze_module _sitebuiltins $(srcdir)/Lib/_sitebuiltins.py $(srcdir)/Python/frozen_modules/_sitebuiltins.h

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

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

Expand Down
5 changes: 5 additions & 0 deletions PCbuild/_freeze_module.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
<IntFile>$(IntDir)_sitebuiltins.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\_sitebuiltins.h</OutFile>
</None>
<None Include="..\Lib\_sysconfig.py">
<ModName>_sysconfig</ModName>
<IntFile>$(IntDir)_sysconfig.g.h</IntFile>
<OutFile>$(PySourcePath)Python\frozen_modules\_sysconfig.h</OutFile>
</None>
<None Include="..\Lib\genericpath.py">
<ModName>genericpath</ModName>
<IntFile>$(IntDir)genericpath.g.h</IntFile>
Expand Down
3 changes: 3 additions & 0 deletions PCbuild/_freeze_module.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
<None Include="..\Lib\_sitebuiltins.py">
<Filter>Python Files</Filter>
</None>
<None Include="..\Lib\_sysconfig.py">
<Filter>Python Files</Filter>
</None>
<None Include="..\Lib\genericpath.py">
<Filter>Python Files</Filter>
</None>
Expand Down
2 changes: 2 additions & 0 deletions Python/frozen.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "frozen_modules/io.h"
#include "frozen_modules/_collections_abc.h"
#include "frozen_modules/_sitebuiltins.h"
#include "frozen_modules/_sysconfig.h"
#include "frozen_modules/genericpath.h"
#include "frozen_modules/ntpath.h"
#include "frozen_modules/posixpath.h"
Expand Down Expand Up @@ -80,6 +81,7 @@ static const struct _frozen _PyImport_FrozenModules[] = {
{"_collections_abc", _Py_M___collections_abc,
(int)sizeof(_Py_M___collections_abc)},
{"_sitebuiltins", _Py_M___sitebuiltins, (int)sizeof(_Py_M___sitebuiltins)},
{"_sysconfig", _Py_M___sysconfig, (int)sizeof(_Py_M___sysconfig)},
{"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)},
Expand Down
1 change: 1 addition & 0 deletions Tools/scripts/freeze_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def find_tool():
('stdlib - startup, with site', [
'_collections_abc',
'_sitebuiltins',
'_sysconfig',
'genericpath',
'ntpath',
'posixpath',
Expand Down