> Le 28 déc. 2021 à 21:07, Pascal <[email protected]> a écrit :
>
>> Le 28 déc. 2021 à 17:18, john <[email protected]> a écrit :
>>
>>> On Dec 28, 2021, at 1:48 AM, Pascal <[email protected]> wrote:
>>>
>>> Hello,
>>>
>>> For this build, I needed Python3, so I did:
>>>
>>> % jhbuild bootstrap-gtk-osx
>>> % jhbuild build python3
>>> % jhbuild build meta-gtk-osx-bootstrap
>>> ...
>>> *** Configuring gtk-doc *** [8/9]
>>> meson --prefix /usr/local/xnadalib-2021 --libdir lib -Dyelp_manual=false
>>> -Dtests=false --wrap-mode=nofallback /usr/local/src-2021/gtk-doc-1.33.2
>>> The Meson build system
>>> Version: 0.60.3
>>> Source dir: /usr/local/src-2021/gtk-doc-1.33.2
>>> Build dir: /usr/local/src-2021/cache/jhbuild/build/gtk-doc-1.33.2
>>> Build type: native build
>>> Project name: gtk-doc
>>> Project version: 1.33.1
>>> C compiler for the host machine:
>>> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc (clang 13.0.0 "Apple
>>> clang version 13.0.0 (clang-1300.0.29.3)")
>>> C linker for the host machine:
>>> /Applications/Xcode.app/Contents/Developer/usr/bin/gcc ld64 711
>>> Host machine cpu family: x86_64
>>> Host machine cpu: x86_64
>>> Program python3 found: YES (/usr/local/xnadalib-2021/bin/python3)
>>>
>>> ../../../../gtk-doc-1.33.2/meson.build:45:4: ERROR: Problem encountered:
>>> Required Python3 module 'pygments' not found
>>>
>>> The build used python3 installed in prefix (/usr/local/xnadalib-2021) which
>>> is expected, isn't it?
>>>
>>> Do I need to install pygments in addition ?
>>> If so how do to it? with jhbuild?
>>> Thanks for help.
>>
>> If you use pygments instead of python3 in your modules list it will pull in
>> python3 and build pygments for you. If you're already into the build it's
>> easier to just drop to a shell and say 'pip3 install pygments'.
>
>
> Thanks John, I did the pip3 with success.
Hello John,
This time, i tried 'jhbuild build pygments'.
It works but pygments is installed in $prefix/lib/python3.10/site-packages.
That's odd if you install before Python3 which is version 3.9.
GTK-DOC is still puzzled.
Then in order to get pygments installed in $prefix/lib/python3.9/site-packages,
I propose to change jhbuildrc as:
if ('python3' in modules or 'meta-gtk-osx-python3' in modules or
- 'pygments' in modules):
+ 'pygments' in modules
+ or 'python3' in sys.argv or 'meta-gtk-osx-python3' in sys.argv
+ or 'pygments' in sys.argv):
What is your feedback?
Thanks, Pascal.
https://blady.pagesperso-orange.fr
_______________________________________________
gtk-osx-users-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list