This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Install fails after configure sets the extending/embedding install directory to NONE
Type: behavior Stage:
Components: Installation Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: doko Nosy List: doko, larry, python-dev, twouters, xdegaye
Priority: normal Keywords: patch

Created on 2015-05-03 19:42 by xdegaye, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
configure.patch xdegaye, 2015-05-03 19:42 review
Messages (5)
msg242504 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2015-05-03 19:42
Running configure without the '--prefix' option creates the Makefile with the following line:
LIBPL= NONE/lib/python3.5/config-$(VERSION)$(ABIFLAGS)

As a result 'make install' fails to install the library and the stuff needed for extending/embedding.

The attached patch fixes the problem.
msg242591 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2015-05-05 08:53
Installing the april 20 pre-release Python 3.5.0a4:
    $ tar xJf Python-3.5.0a4.tar.xz
    $ cd Python-3.5.0a4 && ./configure
    $ grep "LIBPL=" Makefile
    LIBPL=          NONE/lib/python3.5/config-$(VERSION)$(ABIFLAGS)

    $ make all
    $ sudo make install
    $ ls -ld /usr/local/lib/python3.5/config-3.5*
    ls: cannot access /usr/local/lib/python3.5/config-3.5*: No such file or directory

Installing the default branch patched at changeset bfea101f9402:
    $ make distclean && ./configure
    $ grep "LIBPL=" Makefile
    LIBPL=          /usr/local/lib/python3.5/config-$(VERSION)$(ABIFLAGS)

    $ make all
    $ sudo make install
    $ ls -ld /usr/local/lib/python3.5/config-3.5*
    drwxr-xr-x 2 root root 4.0K May  5 10:32 /usr/local/lib/python3.5/config-3.5dm/

FWIW the regression was introduced by the change to LIBPL in Makefile.pre.in made by changeset 3d3db6d11e8b.
msg242592 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2015-05-05 08:59
> FWIW the regression was introduced by the change to LIBPL in Makefile.pre.in made by changeset 3d3db6d11e8b.

Ooops, the regression was made by changeset 84328374ea01.
msg242623 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-05-05 23:13
New changeset 29512e2015d9 by doko in branch '3.4':
- Issue #24122, fix quoting for LIBPL
https://hg.python.org/cpython/rev/29512e2015d9
msg242667 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2015-05-06 13:17
fixed for 3.4 and 3.5.
History
Date User Action Args
2022-04-11 14:58:16adminsetgithub: 68310
2015-05-06 13:17:32dokosetstatus: open -> closed
resolution: fixed
messages: + msg242667
2015-05-05 23:13:44python-devsetnosy: + python-dev
messages: + msg242623
2015-05-05 15:45:21dokosetassignee: doko
2015-05-05 12:30:29r.david.murraysetnosy: + doko
2015-05-05 08:59:02xdegayesetmessages: + msg242592
2015-05-05 08:53:35xdegayesetmessages: + msg242591
2015-05-04 09:27:30xdegayesetnosy: + larry
2015-05-03 19:42:51xdegayecreate