Дилян Палаузов 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
Дилян Палаузов 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': Permissio
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
Дилян Палаузов 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
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
--with
Дилян Палаузов 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 not
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
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
Дилян Палаузов 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
<https://bugs.python.org/issue32
New submission from Дилян Палаузов :
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 standards:
if isinstance(fn
New submission from Дилян Палаузов :
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.
if julian is None and weekday i
New submission from Дилян Палаузов :
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, key=len, reverse=True)
-for valu
Дилян Палаузов 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 PyObj
Дилян Палаузов 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 "True if 'a list' else False"
--
___
Дилян Палаузов 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: pending -> o
New submission from Дилян Палаузов :
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.3+ (heads/3.6-dirty:2b5cbbb13c, Nov 1 2
Дилян Палаузов 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 accordingly
Дилян Палаузов 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 don
New submission from Дилян Палаузов :
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
iterables that are unpacked as arguments.
Hence an
Дилян Палаузов 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, added on 13th
September...
The
Дилян Палаузов 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)
Different people generate ./configure d
Дилян Палаузов 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 the OS is.
--
___
Python tracker
<ht
Дилян Палаузов 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 running "./configure&q
New submission from Дилян Палаузов :
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 generic methods */
+#if defined
Дилян Палаузов 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
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
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 of a
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
-
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 "
Дилян Палаузов added the comment:
3.5 is also affected.
--
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issue30289>
___
___
Python-bugs-list m
Дилян Палаузов 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
Дилян Палаузов 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 two st
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
Changes by Дилян Палаузов :
--
components: +Build
___
Python tracker
<http://bugs.python.org/issue30159>
___
___
Python-bugs-list mailing list
Unsubscribe:
Дилян Палаузов 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
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
___
Pyth
Changes by Дилян Палаузов :
--
components: +Build
___
Python tracker
<http://bugs.python.org/issue30289>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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 inst
New submission from Дилян Палаузов :
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 in Objects/unicodetype_db.h and
Objects/unic
41 matches
Mail list logo