[Python-Dev] Re: How to customize CPython to a minimal set

2020-07-24 Thread Barry Scott
There are tools in the python ecosystem that know how to build stand alone apps 
for
python. These tools can figure out the minimum set of python and 
.so/.dylib/.dll that are needed.

I use these tools when building apps for Windows and macOS where I do not 
require
that python is pre-installed. You can use the same technics for unix systems.

1. Start with standard python
2. pip install deps
3. run tool to create minimum app

If you build multiple apps then you can share common files to cut down size as 
well.

Barry


> On 22 Jul 2020, at 14:31, Huang, Yang  wrote:
> 
> Thank you for all your comments. 
> I cannot agree any more. I did try but there were so many dependencies. One 
> change all change.
>  
> Micropython is a choice. But not sure if numpy and sqlite3 can be supported 
> well. And what’s the compatibility of the libs in Pypi.  
>  
>  
> From: Guido van Rossum mailto:gu...@python.org>> 
> Sent: Tuesday, July 21, 2020 10:57 PM
> To: Huang, Yang mailto:yang.hu...@intel.com>>
> Cc: python-dev@python.org 
> Subject: Re: [Python-Dev] How to customize CPython to a minimal set
>  
> I expect it will be unfeasible to strip CPython. If you disagree, try it. ;-)
>  
> On Mon, Jul 20, 2020 at 22:35 Huang, Yang  > wrote:
> Hi, Guido
>  
> Yes. Micropyhton is also in consideration.
> But sqlite3 is the first usage. There should be some additional features like 
> numpy, scipy... Not sure if micropython supports well?
>  
> Or is there a feasible way to strip CPython ?
>  
> Thanks.
>  
> From: Guido van Rossum mailto:gu...@python.org>> 
> Sent: Monday, July 20, 2020 10:45 PM
> To: Huang, Yang mailto:yang.hu...@intel.com>>
> Cc: python-dev@python.org 
> Subject: Re: [Python-Dev] How to customize CPython to a minimal set
>  
> Have you considered starting with micropython? It’s made for embedded systems 
> and fully supports Python 3 syntax. Adding sqlite3 support to it will be less 
> work than stripping all the I/O from CPython.
>  
> —Guido
>  
> On Mon, Jul 20, 2020 at 06:48 Huang, Yang  > wrote:
> 
> Hi, all
> 
> There is a request to run python in a Linux-based embedded resource 
> constrained system with sqlite3 support.
> 
> So many features are not required, like posixmodule, signalmodule, hashtable 
> ...
> But seems there are some dependencies among the 
> Modules/Parser/Python/Objects/Programs...
> 
> Is there a way to tailor CPython 3 to a minimal set with sqlite3 (the less 
> syscalls the better) ? 
> Is it possible to do that?
> 
> Thank you.
> ___
> Python-Dev mailing list -- python-dev@python.org 
> 
> To unsubscribe send an email to python-dev-le...@python.org 
> 
> https://mail.python.org/mailman3/lists/python-dev.python.org/ 
> 
> Message archived at 
> https://mail.python.org/archives/list/python-dev@python.org/message/ECPLKXQ42VNLHD5DP3RG57L3QTJ77FUT/
>  
> 
> Code of Conduct: http://python.org/psf/codeofconduct/ 
> 
> --
> --Guido (mobile)
> -- 
> --Guido (mobile)
> ___
> Python-Dev mailing list -- python-dev@python.org 
> 
> To unsubscribe send an email to python-dev-le...@python.org 
> 
> https://mail.python.org/mailman3/lists/python-dev.python.org/ 
> 
> Message archived at 
> https://mail.python.org/archives/list/python-dev@python.org/message/OMUGASSNBFJOT3W2ES4OIOQ4LOWMNHHG/
>  
> 
> Code of Conduct: http://python.org/psf/codeofconduct/ 
> 
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/IFOGVDZFASRHKSJO46Q74UFCKXPULVOL/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Summary of Python tracker Issues

2020-07-24 Thread Python tracker

ACTIVITY SUMMARY (2020-07-17 - 2020-07-24)
Python tracker at https://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open7569 (+19)
  closed 45560 (+43)
  total  53129 (+62)

Open issues with patches: 3075 


Issues opened (44)
==

#38946: IDLE on macOS 10.15 Catalina does not open double-clicked file
https://bugs.python.org/issue38946  reopened by ned.deily

#41288: Pickle crashes unpickling invalid NEWOBJ_EX opcode
https://bugs.python.org/issue41288  reopened by serhiy.storchaka

#41314: PEP 563 and annotations __future__ mandatory version
https://bugs.python.org/issue41314  reopened by gvanrossum

#41326: Build failure in blurb-it repo: "Failed building wheel for yar
https://bugs.python.org/issue41326  opened by Mariatta

#41328: Hudson CI is not available anymore
https://bugs.python.org/issue41328  opened by DmytroLitvinov

#41330: Inefficient error-handle for CJK encodings
https://bugs.python.org/issue41330  opened by malin

#41332: connect_accepted_socket() missing from AbstractEventLoop
https://bugs.python.org/issue41332  opened by alex.gronholm

#41335: free(): invalid pointer in list_ass_item() in Python 3.7.3
https://bugs.python.org/issue41335  opened by Howard_Landman

#41336: Sporadic segfaults during zoneinfo object creation stopped usi
https://bugs.python.org/issue41336  opened by xtreak

#41340: Not very good strcpy implementation in cpython/Python/strdup.c
https://bugs.python.org/issue41340  opened by fj92f3jj923f923

#41341: Recursive evaluation of ForwardRef (and PEP 563)
https://bugs.python.org/issue41341  opened by joperez

#41344: SharedMemory crash when size is 0
https://bugs.python.org/issue41344  opened by vinay0410

#41345: Remote end closed connection without response
https://bugs.python.org/issue41345  opened by Michal Arbet

#41346: test_thousand and compileall hangs on riscv64
https://bugs.python.org/issue41346  opened by felixonmars

#41348: Support replacing global function pointers in a shared library
https://bugs.python.org/issue41348  opened by Unai Martinez

#41349: idle not going full screen when I rotate screen 90° on mac
https://bugs.python.org/issue41349  opened by Tim Z

#41350: Use of zipfile.Path causes attempt to write after ZipFile is c
https://bugs.python.org/issue41350  opened by Nick Henderson

#41352: FileIO.readall() should raise "UnsupportedOperation" when in "
https://bugs.python.org/issue41352  opened by Ziyi Wang

#41353: Indicate supported sound header formats
https://bugs.python.org/issue41353  opened by nanjekyejoannah

#41354: filecmp.cmp documentation does not match actual code
https://bugs.python.org/issue41354  opened by chanke

#41355: os.link(..., follow_symlinks=False) without linkat(3)
https://bugs.python.org/issue41355  opened by ronaldoussoren

#41356: Convert bool.__new__ to argument clinic
https://bugs.python.org/issue41356  opened by Dennis Sweeney

#41357: pathlib.Path.resolve incorrect os.path equivalent
https://bugs.python.org/issue41357  opened by Jendrik Weise

#41359: argparse mutually exclusive group  does not exclude in some ca
https://bugs.python.org/issue41359  opened by kkarbowiak

#41360: method _tunnel does not allow for a standard proxy authenticat
https://bugs.python.org/issue41360  opened by Namyotkin

#41362: Regenerating parser table fails (windows)
https://bugs.python.org/issue41362  opened by constantmarks

#41365: Python Launcher is sorry to say... No pyvenv.cfg file
https://bugs.python.org/issue41365  opened by Packhash

#41367: Popen Timeout raised on 3.6 but not on 3.8
https://bugs.python.org/issue41367  opened by Joan Prat Rigol

#41368: Allow compiling Python with llvm-clang on Windows.
https://bugs.python.org/issue41368  opened by William Pickard

#41369: Update to libmpdec-2.5.1
https://bugs.python.org/issue41369  opened by skrah

#41370: PEP 585 and ForwardRef
https://bugs.python.org/issue41370  opened by joperez

#41371: test_zoneinfo fails when lzma module is unavailable
https://bugs.python.org/issue41371  opened by doodspav

#41372: Log exception never retrieved in concurrent.futures
https://bugs.python.org/issue41372  opened by bar.harel

#41373: IDLE: edit/save files created by Windows Explorer
https://bugs.python.org/issue41373  opened by terry.reedy

#41374: socket.TCP_* no longer available with cygwin 3.1.6+
https://bugs.python.org/issue41374  opened by lazka

#41376: site.getusersitepackages() incorrectly claims that PYTHONNOUSE
https://bugs.python.org/issue41376  opened by pelson

#41377: memoryview of str (unicode)
https://bugs.python.org/issue41377  opened by jakirkham

#41380: Add snake example to turtledemo
https://bugs.python.org/issue41380  opened by Ehsonjon Gadoev

#41381: Google chat handler in Logging module
https://bugs.python.org/issue41381  opened by anandtripathi5

#41383: Provide a limit arguments for __repr__
https://bugs.python.org/issue41383  opened by Berna