[issue45273] OS-specific frozen modules are built, even on other OSes.

2021-11-19 Thread Guido van Rossum


Change by Guido van Rossum :


--
pull_requests: +27887
pull_request: https://github.com/python/cpython/pull/29648

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45273] OS-specific frozen modules are built, even on other OSes.

2021-11-19 Thread Guido van Rossum


Change by Guido van Rossum :


--
Removed message: https://bugs.python.org/msg406633

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45273] OS-specific frozen modules are built, even on other OSes.

2021-11-19 Thread Guido van Rossum


Change by Guido van Rossum :


--
pull_requests:  -27883

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45273] OS-specific frozen modules are built, even on other OSes.

2021-11-19 Thread Guido van Rossum


Guido van Rossum  added the comment:

(Note, that PR doesn't actually fix this, its description just references this.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45273] OS-specific frozen modules are built, even on other OSes.

2021-11-19 Thread Guido van Rossum


Change by Guido van Rossum :


--
keywords: +patch
nosy: +gvanrossum
nosy_count: 2.0 -> 3.0
pull_requests: +27883
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29648

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45273] OS-specific frozen modules are built, even on other OSes.

2021-09-23 Thread Eric Snow


Eric Snow  added the comment:

FYI, currently os.path is also frozen and *is* OS-specific.  However, that's a 
separate matter.  See bpo-45272.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45273] OS-specific frozen modules are built, even on other OSes.

2021-09-23 Thread Eric Snow


New submission from Eric Snow :

The list of frozen modules in Python/frozen.c is generated by 
Tools/scripts/freeze_modules.py.  Currently we freeze both posixpath and 
ntpath, even though for startup we only need one of the two (depending on the 
OS).  In this case both modules are available on all platforms (and only 
os.path differs), so we might be okay to leave both frozen.  The cost isn't 
high.

However, we may need to accommodate freezing a module only on a subset of 
supported OSes:

* if the extra cost (to the size of the executable) is too high
* if there's an OS-specific module that is only available on that OS

In that case, we'd need to generate the appropriate ifdefs in Python/frozen.c.  
We can't just exclude the module during generation since frozen.c is committed 
to the repo.

--
assignee: eric.snow
components: Interpreter Core
messages: 402514
nosy: eric.snow, steve.dower
priority: normal
severity: normal
stage: needs patch
status: open
title: OS-specific frozen modules are built, even on other OSes.
type: behavior
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com