[issue46894] make install DESTDIR= uses /lib/python3.10/lib-dynload out of DESTDIR

2022-03-03 Thread Дилян Палаузов
Дилян Палаузов added the comment: I want to compile and install python for a chrooted environment. --prefix are the path within the chrooted-environment. DESTDIR is the location of the root of the chrooted-environment. When I glue DESTDIR with --prefix= (thus use no DESTDIR) this happens

[issue46894] make install DESTDIR= uses /lib/python3.10/lib-dynload out of DESTDIR

2022-03-01 Thread Дилян Палаузов
Дилян Палаузов added the comment: Once I create /lib/python3.10/lib-dynload/, the next error is: changing mode of /lib/python3.10/lib-dynload/__pycache__ to 755 running install_scripts copying build/scripts-3.10/pydoc3.10 -> /bin error: could not delete '/bin/pydoc3.10': Permission denied m

[issue46894] make install DESTDIR= uses /lib/python3.10/lib-dynload out of DESTDIR

2022-03-01 Thread Дилян Палаузов
New submission from Дилян Палаузов : With most recent 3.10 (v3.10.2-169-g98e2ee60) I call ./configure --prefix=/ && make && make DESTDIR=/home/d/A install It fails with: running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers Python build finis

[issue46579] Compiling from source prints «ModuleNotFoundError: No module named 'binascii'»

2022-01-30 Thread Дилян Палаузов
Дилян Палаузов added the comment: The problem is, that Python’s install target depends on the system-wide setuptools, if there is system-wide setuptools. If there is no system-wide installed setuptools, apparently the installation works flawlessly. The solution is to tweak the source code

[issue46579] Compiling from source prints «ModuleNotFoundError: No module named 'binascii'»

2022-01-30 Thread Дилян Палаузов
New submission from Дилян Палаузов : I compile python from source: $ python --version Python 3.10.1+ $ cat /etc/config.site ax_cv_c_float_words_bigendian=no enable_silent_rules=yes $ git describe v3.10.2-74-ga5451c96a1 $ ./configure --enable-loadable-sqlite-extensions --disable-ipv6

[issue40632] AttributeError: type object 'Callable' has no attribute '_abc_registry'

2020-05-15 Thread Дилян Палаузов
Дилян Палаузов added the comment: I used python 3.6, I exported all dependencies with `pip list`, then upgraded to python 3.8 and imported the exported dependencies. Uninstalling the “typing” module has helped. Do you mean, that python 3.8 includes the “typing” modules, so that it may

[issue40632] AttributeError: type object 'Callable' has no attribute '_abc_registry'

2020-05-15 Thread Дилян Палаузов
New submission from Дилян Палаузов : I have the newest cpython 3.8 (07bd5cf3d9551ae), installed with `./configure --enable-loadable-sqlite-extensions --disable-ipv6 --with-system-expat --with-system-libmpdec --enable-shared && make && make install`. Calling `pip-20.1 install

[issue40488] setup.py shall search by default for libffi.so in /usr/local/lib64

2020-05-03 Thread Дилян Палаузов
New submission from Дилян Палаузов : With libffi 3.3 doing `./configure && make install` puts libffi.so in /usr/local/lib64/ . This can be found by pkgconfig. But setup.py neither uses pkgconfig, nor checks by default /usr/local/lib64 for libffi -- components: Build messages

[issue32829] Lib/ be more pythonic

2018-03-05 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: The variables got_it in distutils/command/sdist and quote in email/_header_value_parser can be skipped making the code shorter and faster. -- ___ Python tracker <rep...@bugs.p

[issue32829] Lib/ be more pythonic

2018-02-12 Thread Дилян Палаузов
New submission from Дилян Палаузов <dilyan.palau...@aegee.org>: diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py --- a/Lib/distutils/command/sdist.py +++ b/Lib/distutils/command/sdist.py @@ -251,14 +251,11 @@ class sdist(Command): for fn in sta

[issue32828] compress "True if bool(x) else False" expressions

2018-02-12 Thread Дилян Палаузов
New submission from Дилян Палаузов <dilyan.palau...@aegee.org>: diff --git a/Lib/_strptime.py b/Lib/_strptime.py --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -525,7 +525,7 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"): # out the Julian day of the year

[issue32801] Lib/_strptime.py: utilize all()

2018-02-08 Thread Дилян Палаузов
New submission from Дилян Палаузов <dilyan.palau...@aegee.org>: diff --git a/Lib/_strptime.py b/Lib/_strptime.py --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -238,10 +238,7 @@ class TimeRE(dict): """ to_convert = sorted(to_convert,

[issue32180] bool() vs len() > 0 on lists

2017-11-30 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: Is the speedup a matter of adding "__bool__" to list_methods in object/listobject.c? In any case, I am not in the internals of cpython, so that I am not going to provide a patch. With PyObject_Bool I meant

[issue32180] bool() vs len() > 0 on lists

2017-11-30 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: Under these circumstances https://wiki.python.org/moin/PythonSpeed/PerformanceTips shall be updated to state that "len('a list') > 0" is slower than "Tru

[issue32180] bool() vs len() > 0 on lists

2017-11-30 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: To my understanding this optimization (bool([]) faster than len([])) cannot be made until PyObject_Bool is introduced, similar to PyObject_Repr and PyObject_Length. Am I not going to provide a patch. -- status: p

[issue32180] bool() vs len() > 0 on lists

2017-11-30 Thread Дилян Палаузов
New submission from Дилян Палаузов <dilyan.palau...@aegee.org>: Please make bool() on lists at least as fast as len() > 0 on lists is. The trivial approach would be to define __bool__ on lists, that do something like "True if self else False". python3 Python 3.6.

[issue31914] Document Pool.(star)map return type

2017-11-03 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: If the idea is one day to switch the return type to an iterable/generator, returning from starmap() before all parallel executions have completed, this needs to be documented and the typeshed adjusted accor

[issue31914] Document Pool.(star)map return type

2017-10-31 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: Pool.starmap is not like map from the standard library, as the hyperlinking on the word map() suggests, but like Pool.map(). The latter talks about the chunksize parameter, but the former and Pool.starmap

[issue31914] Document Pool.(star)map return type

2017-10-31 Thread Дилян Палаузов
New submission from Дилян Палаузов <dilyan.palau...@aegee.org>: https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.starmap says: starmap(func, iterable[, chunksize]) Like map() except that the elements of the iterable are expected to be ite

[issue28507] Regenerate ./configure on the default branch

2017-10-13 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: For the record, on master runstatedir was added on 7th September 2017, removed on 5th September, added on 29 June, removed on 9th June, added on 14th April, removed on 6th December 2016 and 10th October in two branches,

[issue31748] configure fails to detect fchdir() using CFLAGS="-Werror -Wall"

2017-10-11 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: The patch puts in "Misc/NEWS.d/next/Core and Builtins/2017-10-11-10-42-02.bpo-31748.oaEZcq.rst": +Support configure with -Wall by avoiding unused variables. but likely means "-Werror" (or both)

[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: If I remove -Werror from CFLAGS ./configure prints: checking for fchdir... yes checking for fsync... yes checking for fdatasync... yes so it is irrelevant what

[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread Дилян Палаузов
Дилян Палаузов <dilyan.palau...@aegee.org> added the comment: Having 'CFLAGS="-pipe -Werror -Wall -Wextra -O3 -fno-fat-lto-objects -flto" CXXFLAGS="-pipe -Wall -Wextra -O3 -fno-fat-lto-objects -flto" LDFLAGS="-Wl,-O1,-s -flto=12" ' in config.site and run

[issue31748] Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd

2017-10-10 Thread Дилян Палаузов
New submission from Дилян Палаузов <dilyan.palau...@aegee.org>: These are needed only sometimes. diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1466,6 +1466,7 @@ path_error2(path_t *path, path_t *path2) /* POSIX g

[issue30159] gdb autoloading python-gdb.py

2017-08-20 Thread Дилян Палаузов
Дилян Палаузов added the comment: Alternatively install $(INSTSONAME)-gdb.py into ${LIBDIR} . ldconfig will complain, when called, but this is how gcc and libisl, glib do it . This is in anycase better than the current approach, as it lets gdb automatically load the -gdb.py file

[issue31190] ./configure: add ability to build and install only shared library (without static libpython3.a)

2017-08-12 Thread Дилян Палаузов
New submission from Дилян Палаузов: diff --git a/Makefile.pre.in b/Makefile.pre.in --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -578,7 +578,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt Modules/_math.o # Build static library # avoid long command lines, same as LIBRARY_OBJS -$(LIBRARY

[issue31189] README.rst: installing multiple versions: typo

2017-08-12 Thread Дилян Палаузов
New submission from Дилян Палаузов: It speaks about pythonX.Y but means python3.${subversion} diff --git a/README.rst b/README.rst --- a/README.rst +++ b/README.rst @@ -190,7 +190,7 @@ script) you must take care that your primary python executable is not overwritten by the installation

[issue31188] Makefile.pre.in: commoninstall: reformat

2017-08-12 Thread Дилян Палаузов
New submission from Дилян Палаузов: When @FRAMEWORKALTINSTALLLAST@ expands to "", the last line of recipe commoninstall in the resulting Makefile consists solely of two tabs, for which emacs complains as "suspicious line". diff --git a/Makefile.pre.in b/Makefile.pre.in -

[issue31102] deheader: double #incude of the same file

2017-08-02 Thread Дилян Палаузов
New submission from Дилян Палаузов: For cpython 3.6 deheader (http://www.catb.org/esr/deheader/) reports: Mac/Tools/pythonw.c has more than one inclusion of Modules/_sre.c has more than one inclusion of "sre_lib.h" Modules/_testcapimodule.c has more than one inclusion of "

[issue30289] make distclean and Misc/python-config.sh

2017-05-09 Thread Дилян Палаузов
Дилян Палаузов added the comment: 3.5 is also affected. -- versions: +Python 3.5 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30287] cpython and Clang Static Analyzer

2017-05-07 Thread Дилян Палаузов
Дилян Палаузов added the comment: I forgot to pass --with-pydebug to ./configure in order to consider also the asserts. Here we go: scan-build ./configure --enable-loadable-sqlite-extensions --enable-ipv6 --with-system-expat --with-system-libmpdec --with-pydebug scan-build -o /home

[issue30294] ./configure, pydebug and pymalloc

2017-05-07 Thread Дилян Палаузов
Дилян Палаузов added the comment: ./configure --help also does not indicate, whether just "./configure" enables or disables IPv6, thread support, dtrace*, computed-gotos*, doc-strings*. The asterisk features, suggest replacing AC_ARG_WITH with AC_ARG_ENABLE, as there are only

[issue30294] ./configure, pydebug and pymalloc

2017-05-07 Thread Дилян Палаузов
New submission from Дилян Палаузов: Providing that during ./configure Py_DEBUG can either be set or not, but there is no third state, which third state would justify calling ./configure --with-pydebug=lambda, --with-pydebug shall be renamed to --enable-pydebug . Likewise for --with-pymalloc

[issue30159] gdb autoloading python-gdb.py

2017-05-06 Thread Дилян Палаузов
Changes by Дилян Палаузов <dilyan.palau...@aegee.org>: -- components: +Build ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30159] gdb autoloading python-gdb.py

2017-05-06 Thread Дилян Палаузов
Дилян Палаузов added the comment: This is what I mean. I asked at https://sourceware.org/bugzilla/show_bug.cgi?id=21465 how configure.ac is supposed to be tweaked. diff --git a/Makefile.pre.in b/Makefile.pre.in --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1093,6 +1093,8

[issue30289] make distclean and Misc/python-config.sh

2017-05-05 Thread Дилян Палаузов
New submission from Дилян Палаузов: 'make distclean' forgets to delete Misc/python-config.sh . -- messages: 293151 nosy: dilyan.palauzov priority: normal severity: normal status: open title: make distclean and Misc/python-config.sh ___ Python tracker

[issue30289] make distclean and Misc/python-config.sh

2017-05-05 Thread Дилян Палаузов
Changes by Дилян Палаузов <dilyan.palau...@aegee.org>: -- components: +Build ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30287] cpython and Clang Static Analyzer

2017-05-05 Thread Дилян Палаузов
New submission from Дилян Палаузов: I compiled cpython using Clang 4.0 Static Analyzer with scan-build ./configure --enable-loadable-sqlite-extensions --enable-ipv6 --with-system-expat --with-system-ffi --with-system-libmpdec scan-build make and here are the results https://mail.aegee.org

[issue30159] gdb autoloading python-gdb.py

2017-04-25 Thread Дилян Палаузов
New submission from Дилян Палаузов: Please install python-gdb.py in $(datarootdir)/gdb/auto-load/$(libdir)/libpython3.5m.so.1.0-gdb.py during "make install", so that programs linked towards libpython3.5m.so.1.0 will auto-load the -gdb.py script, when debugged. Likewise for the

[issue29370] "./configure --enable-optimizations && make install" does not install files in ${BINDIR} and ${LIBDIR}

2017-01-25 Thread Дилян Палаузов
New submission from Дилян Палаузов: With Python 3.5.3 "./configure --enable-shared && make install DESTDIR=/tmp/ZZ1" does install files in /tmp/ZZ1/usr/local/bin/ and /tmp/ZZ1/usr/local/bin/ . "./configure --enable-optimizations --enable-shared && make

[issue11309] #include wctype.h in Objects/unicodetype_db.h and Objects/unicodectype.c

2011-02-24 Thread Дилян Палаузов
New submission from Дилян Палаузов dilyan.palau...@aegee.org: As of python 2.7.1 configured with --enable-ipv6 --enable-unicode --with-system-expat --with-system-ffi --with-signal-module --with-threads --with-wctype-functions --enable-shared: Please #include wctype.h in Objects