[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build problems - solved

From: Werner Arnhold
Subject: Re: build problems - solved
Date: Thu, 13 Jan 2022 11:43:21 +0100
User-agent: Evolution 3.30.5-1.1

Am Mittwoch, den 12.01.2022, 17:21 +0100 schrieb David Kastrup:
> Werner Arnhold <> writes:
> > Oh, sorry, I forgot: I use Debian-10.2 and Python 3.7.3 but there
> > is a
> > Python-2.7 on my machine too. The config.log says:
> > 
> > configure:3205: checking for python
> > configure:3297: result: python3
> > configure:3300: checking python3 version
> > configure:3302: result: 3.7.3
> > configure:3312: checking for python3
> > configure:3330: found /home/werner/bin/python3
> > configure:3342: result: /home/werner/bin/python3
> > 
> > That is a small shell script that adjusts the PYTHONPATH to include
> > my
> > privat python directories and then starts /usr/bin/python3.7.
> If it is a "small shell script", you should be able to post it
> here.  It
> is quite possible that it is not functionally compatible with the
> normal
> utility regarding the interpretation of commandline options and/or
> will
> not function perfectly when used as a #! interpreter.

The small shell script is:

    export PYTHONPATH

    /usr/bin/python3 "$@"

I use it because I need python2 and python3 in parallel  and want to
have my own version-specific directories in the Path. At the start of
the script PYTHONPATH is empty, when I start

    import sys

I get

    ['/home/werner', '/home/werner/python3', 
    '/home/werner/python3/mathe', '/usr/lib/', 
    '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', 

Newline inserted by me. I don't preserve the former content of
PYTHONPATH because the dirs for py2 and py3 would be mixed. Does the
compilation process for lilypond set special values for PYTHONPATH?

I did

    git clean -xdf
    ./ --noconfigure
    mkdir build
    cd build
    make all

and ended with the same mess. When I grep'ed for PYHTONPATH I found it
is changed in the compilation process, so I commented out the changing
in my ~/bin/python3, now the compilation process ended without further

Now I will proceed to translation. Thanks for the help!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]