Python 3.7's Deterministic pycs
by Petr Viktorin
Hello!
The first beta for Python 3.7 is out. It will hopefully get into Fedora
soon as python37.
After it comes out of beta, we'll upgrade python3 to it.
The What's New list is at: https://docs.python.org/3.7/whatsnew/3.7.html
One thing that's interesting for packagers is PEP 552: Deterministic
pycs: https://www.python.org/dev/peps/pep-0552/
Let me summarize in my own words.
A new opt-in mode for byte-compilation makes .pyc (bytecode cache) files
depend only on the contents of the corresponding source file.
If we use this, it will slow down imports, because the whole source file
would need to be read and hashed in order to verify if a .pyc file is
valid. (Currently, metadata like the modification time and file size is
used.)
To speed things up, there's an option, UNCHECKED_HASH, which skips cache
validation entirely. Using this would mean that if you modify a .py
source file installed by RPM, the changes wouldn't take effect (the .py
contents would only be shown in tracebacks).
Modifying installed files in production is extremely bad practice, of
course, but it's quite useful for debugging on throw-away systems. If we
adopt UNCHECKED_HASH, anyone doing it will have to remember to remove
the corresponding .pyc file.
Honestly, I'm not sure we want to use this in Fedora. Is anyone here
into reproducible builds, to make a better argument for this?
--
Petr Viktorin
4 years, 2 months
Updating python3-setuptools in EPEL7
by Orion Poplawski
I'd like to update python3-setuptools from 19.6.2 to something newer (at
least 20.8.1 but hopefully much later) without breaking the world.
However, I don't have much experience with possible setuptools breakage.
Any suggestions would be greatly appreciated.
--
Orion Poplawski
Manager of NWRA Technical Systems 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion(a)nwra.com
Boulder, CO 80301 https://www.nwra.com/
4 years, 10 months
Introduction
by Daniel Newkirk
Hi!
My name is Daniel, and I'd love to help out the Fedora project in some manner. Been a Fedora user on and off since Fedora 1 (used RH 9 back in the day), and I've been coding with Python for about a decade now--things like bioinformatics software, analysis pipelines, and automation--and may be of some use. There appear to be some python2 packages that still need some packaging/porting to python3, but that may not be of use much longer? If there is an area of particular need, and someone has a few spare moments to point me in the right direction, that would be wonderful. I'm not very experienced with packaging in Fedora yet, but I'm a quick learner and self-motivated, so it should be relatively painless :).
Daniel
4 years, 10 months