Your message dated Tue, 27 Dec 2022 23:24:11 +0000
with message-id <e1pajip-00cbio...@fasolo.debian.org>
and subject line Bug#1027107: Removed package(s) from unstable
has caused the Debian Bug report #699491,
regarding pycompile: Support -OO to suppress docstrings in .pyo files
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
699491: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699491
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-defaults
Version: 2.7.3-11
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Dear Maintainer,
Python of course supports -OO which both optimizes and removes
docstrings from the resulting .pyo files. This can provide
significant file size savings. pycompile currently only supports a
single -O flag, but it should support -OO too.
I'll attach a proposed patch.
- -- System Information:
Debian Release: wheezy/sid
APT prefers raring-updates
APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500,
'raring'), (100, 'raring-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.8.0-2-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCAAGBQJRCvAIAAoJEBJutWOnSwa/XK4P/0XUhlGzlX+R3OQjSAk2FOMH
japFqCR8dRo1irmLja9mfx9LY+UhvYdBLIVEUHxecOoh1OwWLx6D9S8zoN8ZA3bz
f3rb9lNb7086q4Z3viHI6j+6UiJwY5q0T8v9Sck/MymV+9kOZvJKgCIj8PZM7cjA
qJ4Gvw88w17OEc9L/6jxe2nkRQoSIv8R5GveDBlnT+9ZGG4ikUfOEeqZG7fJD7ms
jzgO9oyfVN6DFzq3IiJ9ie9xW+TwGWZtSyxcIIR9Vq7YhlBuuei4yC4QSgBkTK7H
tJyF9cqO4yZf4VXwvUBHcscpTsxHVdrfnfdBCkcosKD42OgUUSTqd5nJ2rYnhHHA
4QTNqarLojp8lF89OwF1yMaSXa/fRBOTf6uq5D7F5coQJBu+HhwHMcaCoOTKfU7V
ELRVshGMtHkxpd8N4plJ+UqyAQnFD7zWVxoy7svHeMwBpqgUEmJu/gY+NM+EPNST
mdt/NTeczuIGBuZtVhg0GVEmAEKaH8VV65YUrMEgFOUOwYOiimfztF1vYydj99F5
g3+7OItalDLSCW9+I74jeozsCJlbVghKge7I1pp46qpLYMuIM3A/f/uGcrP36OtC
nvyYLNCKQw09Kc8YS24whtGA1dcdAzaKtrR4jd4X6g9oTV9ULZnvxKvH+nHaVKq9
KLGUXSnHAx51iioCfYlv
=ybRV
-----END PGP SIGNATURE-----
=== modified file 'pycompile'
--- pycompile 2012-06-30 12:33:33 +0000
+++ pycompile 2013-01-31 22:10:31 +0000
@@ -130,8 +130,14 @@
def py_compile(version, optimize, workers):
if not isinstance(version, basestring):
version = vrepr(version)
- cmd = "/usr/bin/python%s%s -m py_compile -" \
- % (version, ' -O' if optimize else '')
+ if optimize == 0:
+ optflag = ''
+ elif optimize == 1:
+ optflag = ' -O'
+ else:
+ optflag = ' -OO'
+
+ cmd = "/usr/bin/python%s%s -m py_compile -" % (version, optflag)
process = Popen(cmd, bufsize=1, shell=True,
stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
workers[version] = process # keep the reference for .communicate()
@@ -190,8 +196,9 @@
default=False, help='be quiet')
parser.add_option('-f', '--force', action='store_true', dest='force',
default=False, help='force rebuild even if timestamps are up-to-date')
- parser.add_option('-O', action='store_true', dest='optimize',
- default=False, help="byte-compile to .pyo files")
+ parser.add_option('-O', action='count', dest='optimize',
+ default=0,
+ help="byte-compile to .pyo files; -OO to remove doc strings")
parser.add_option('-p', '--package',
help='specify Debian package name whose files should be bytecompiled')
parser.add_option('-V', type='version_range', dest='vrange',
@@ -209,6 +216,9 @@
(options, args) = parser.parse_args()
+ if options.optimize > 2:
+ parser.error('-O or -OO only allowed')
+
if options.verbose or environ.get('PYCOMPILE_DEBUG') == '1':
log.setLevel(logging.DEBUG)
log.debug('argv: %s', sys.argv)
--- End Message ---
--- Begin Message ---
Version: 2.7.18-3+rm
Dear submitter,
as the package python-defaults has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/1027107
The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.
Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---