> Le 6 avr. 2019 à 16:55, John Ralls <jra...@ceridwen.us> a écrit :
> 
>> On Apr 6, 2019, at 2:25 AM, Pascal <p....@orange.fr> wrote:
>> 
>> Hello,
>> 
>> I tried the new build system 
>> (https://github.com/jralls/gtk-osx-build/tree/pipenv) on macOS 10.13.6.
>> Here are first feedbacks.
>> Download 
>> https://raw.githubusercontent.com/jralls/gtk-osx-build/pipenv/gtk-osx-setup.sh.
>> Execute the following instructions:
>> $ DEVROOT=/Programmation/GIT sh ./gtk-osx-setup.sh 
>>      PATH does not contain /Programmation/GIT/.new_local/bin. You probably 
>> want to fix that.
>>      DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 
>> 2020. Please upgrade your Python as Python 2.7 won't be maintained after 
>> that date. A future version of pip will drop support for Python 2.7.
>>      Uninstalling enum34-1.1.6:
>>        Successfully uninstalled enum34-1.1.6
>>      ./gtk-osx-setup.sh: line 202: pipenv: command not found
>> 
>> =*= I have make this modification (a pull request have been created):
>> -export PATH=$PYENV_ROOT/shims:$PATH
>> +export PATH=$PYENV_ROOT/shims:$DEVPREFIX/bin:$PATH
>> 
>> Then:
>>      question :
>>      Warning: Python 3.6 was not found on your system...
>>      Would you like us to install CPython 3.6.8 with pyenv? [Y/n]: 
>> 
>> I answer "y".
>> =*= Is it mandatory?
>> 
>> Then I got:
>>       Warning: The Python you just installed is not available on your PATH, 
>> apparently.
>> 
>> =*= Is it mandatory?
>> 
>> Nevertheless, I add:
>> $ 
>> PATH=/Programmation/GIT/.new_local/bin:/Programmation/GIT/Source/pyenv/versions/3.6.8/bin:$PATH
>> 
>> My folders are now:
>> $ ls -a1
>> ./
>> ../
>> .DS_Store
>> .new_local/
>> DEVPREFIX/
>> DEV_SRC_ROOT/
>> PIP_CONFIG_DIR/
>> PYENV_ROOT/
>> PYTHONUSERBASE/
>> Source/
>> gtk-osx-setup.sh*
>> 
>> =*= Is it correct?
>> 
>> And now I can't get the next bootstrapping instructions clear for me.
>> =*= Should I run?
>> $ jhbuild bootstrap
>> or
>> $ jhbuild -m /path/to/gtk-osx/modulesets-stable/bootstrap.modules build 
>> meta-bootstrap
>> 
>> =*= Shouldn't be this path?
>> $DEVROOT/Source/jhbuild/modulesets/bootstrap.modules
> 
> Pascal,
> 
> Python 3 > 3.2 is mandatory, it's required for both meson and 
> GObject-Introspection. 
> 
> All of those folders with all-caps names (DEVPREFIX etc) shouldn't exist. 
> Those are supposed to be environment variables, not folders. Did you create 
> them manually or did the script do that?
> 
> `jhbuild bootstrap` requires replacing the bootstrap.modules distributed with 
> jhbuild with the gtk-osx ones. It's a process I inherited when I took over 
> gtk-osx from Richard Hult 10 years ago and I've never liked it. Building 
> meta-bootstrap from the gtk-osx modules explicitly avoids dirtying the 
> jhbuild repo.
> 
> I think you'll have to do a two-stage build for your python2 project: Build 
> everything that needs to be introspected using the virtenv's python3 as 
> python, then build python2 and whatever pure-python projects so that you have 
> the right environment for your program.

John,

Those folders were created by the script, I changed gtk-osx-setup.sh (also in 
pull request):
-        eval "mkdir -p $_varname"
+        mkdir -p "${!_varname}"

I run again the script and I was surprised to see additional installations.
It depends if you add python 3 path in PATH.
With only one run, the installation seems incomplete.

See attached log file.

$ DEVROOT=/Programmation/GIT ./gtk-osx-setup.sh
Cloning into '/Programmation/GIT/Source/pyenv'...
remote: Enumerating objects: 111, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 16848 (delta 47), reused 98 (delta 44), pack-reused 16737
Receiving objects: 100% (16848/16848), 3.30 MiB | 1.65 MiB/s, done.
Resolving deltas: 100% (11389/11389), done.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 won't be maintained after that date. A 
future version of pip will drop support for Python 2.7.
Collecting pipenv
  Using cached 
https://files.pythonhosted.org/packages/bb/15/b155a5c0d19ce41609f50bb70a37e0de092b453ec4bd2eac59e53a2c3227/pipenv-2018.11.26-py2-none-any.whl
Collecting virtualenv-clone>=0.2.5 (from pipenv)
  Using cached 
https://files.pythonhosted.org/packages/37/2b/e34e411da0b960b2245f86ea83cdc20be62150a0966004f54fd2e00e5909/virtualenv_clone-0.5.2-py2.py3-none-any.whl
Collecting enum34; python_version < "3" (from pipenv)
  Using cached 
https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Requirement already satisfied, skipping upgrade: typing; python_version < "3.5" 
in /Library/Python/2.7/site-packages (from pipenv) (3.6.2)
Requirement already satisfied, skipping upgrade: pip>=9.0.1 in 
/Library/Python/2.7/site-packages (from pipenv) (19.0.3)
Requirement already satisfied, skipping upgrade: certifi in 
/Library/Python/2.7/site-packages (from pipenv) (2017.11.5)
Requirement already satisfied, skipping upgrade: virtualenv in 
/Library/Python/2.7/site-packages (from pipenv) (15.1.0)
Requirement already satisfied, skipping upgrade: setuptools>=36.2.1 in 
/Library/Python/2.7/site-packages (from pipenv) (40.8.0)
Installing collected packages: virtualenv-clone, enum34, pipenv
  The script virtualenv-clone is installed in 
'/Programmation/GIT/.new_local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this 
warning, use --no-warn-script-location.
  The scripts pipenv and pipenv-resolver are installed in 
'/Programmation/GIT/.new_local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this 
warning, use --no-warn-script-location.
Successfully installed enum34 pipenv virtualenv-clone
Cloning into '/Programmation/GIT/Source/jhbuild'...
remote: Enumerating objects: 50552, done.
remote: Counting objects: 100% (50552/50552), done.
remote: Compressing objects: 100% (11422/11422), done.
remote: Total 50552 (delta 38936), reused 50510 (delta 38908)
Receiving objects: 100% (50552/50552), 11.44 MiB | 125.00 KiB/s, done.
Resolving deltas: 100% (38936/38936), done.
Archive:  /Programmation/GIT/.new_local/ninja-mac.zip
  inflating: /Programmation/GIT/.new_local/bin/ninja
PATH does not contain /Programmation/GIT/.new_local/bin. You probably want to 
fix that.
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 won't be maintained after that date. A 
future version of pip will drop support for Python 2.7.
Uninstalling enum34-1.1.6:
  Successfully uninstalled enum34-1.1.6
Warning: Python 3.6 was not found on your system...
Would you like us to install CPython 3.6.8 with pyenv? [Y/n]: y
Installing CPython 3.6.8 with pyenv (this may take a few minutes)...
✔ Success!
Downloading openssl-1.0.2k.tar.gz...
-> 
https://pyenv.github.io/pythons/6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0
Installing openssl-1.0.2k...
Installed openssl-1.0.2k to /Programmation/GIT/Source/pyenv/versions/3.6.8

Downloading readline-6.3.tar.gz...
-> 
https://pyenv.github.io/pythons/56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
Installing readline-6.3...
Installed readline-6.3 to /Programmation/GIT/Source/pyenv/versions/3.6.8

Downloading Python-3.6.8.tar.xz...
-> https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
Installing Python-3.6.8...
Installed Python-3.6.8 to /Programmation/GIT/Source/pyenv/versions/3.6.8


Warning: The Python you just installed is not available on your PATH, 
apparently.


##### CHANGING PATH
$ 
PATH=/Programmation/GIT/.new_local/bin:/Programmation/GIT/Source/pyenv/versions/3.6.8/bin:$PATH


##### RERUN with addition installation

$ DEVROOT=/Programmation/GIT ./gtk-osx-setup.sh
Requirement already up-to-date: pipenv in ./.new_local/lib/python/site-packages 
(2018.11.26)
Collecting certifi (from pipenv)
  Using cached 
https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: pip>=9.0.1 in 
./Source/pyenv/versions/3.6.8/lib/python3.6/site-packages (from pipenv) (18.1)
Collecting virtualenv (from pipenv)
  Using cached 
https://files.pythonhosted.org/packages/33/5d/314c760d4204f64e4a968275182b7751bd5c3249094757b39ba987dcfb5a/virtualenv-16.4.3-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: virtualenv-clone>=0.2.5 in 
./.new_local/lib/python/site-packages (from pipenv) (0.5.2)
Requirement already satisfied, skipping upgrade: setuptools>=36.2.1 in 
./Source/pyenv/versions/3.6.8/lib/python3.6/site-packages (from pipenv) (40.6.2)
Installing collected packages: certifi, virtualenv
Successfully installed certifi-2019.3.9 virtualenv-16.4.3
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Already up to date.
Skipping enum34 as it is not installed.
Creating a virtualenv for this project...
Pipfile: /Programmation/GIT/.new_local/etc/Pipfile
Using /Programmation/GIT/Source/pyenv/versions/3.6.8/bin/python3.6 (3.6.8) to 
create virtualenv...
â ´ Creating virtual environment...Using base prefix 
'/Programmation/GIT/Source/pyenv/versions/3.6.8'
New python executable in 
/Users/blady/.local/share/virtualenvs/etc-wU6zeFUx/bin/python3.6
Also creating executable in 
/Users/blady/.local/share/virtualenvs/etc-wU6zeFUx/bin/python
Installing setuptools, pip, wheel...done.
Running virtualenv with interpreter 
/Programmation/GIT/Source/pyenv/versions/3.6.8/bin/python3.6

✔ Successfully created virtual environment!
Virtualenv location: /Users/blady/.local/share/virtualenvs/etc-wU6zeFUx
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
✔ Success!
Updated Pipfile.lock (a365cc)!
Installing dependencies from Pipfile.lock (a365cc)...
  🐍   
▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉
 2/2 — 00:00:06
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

$
HTH, Pascal.
http://blady.pagesperso-orange.fr


_______________________________________________
gtk-osx-users-list mailing list
gtk-osx-users-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list

Reply via email to