On 20/04/2018 08:47, Bruce Dubbs wrote:
> On 04/19/2018 07:11 PM, Ken Moffat wrote:
>> Continuing with my new build, but I didn't get very far.  I'm
>> building various python things before I build the gimp (actually,
>> gimp-2.10.0-RC2 for this build) and the python2 part of pygobject3
>> failed.  From config.log in the python2 directory:
>>
>> configure:14658: $PKG_CONFIG --exists --print-errors "pycairo >= 1.11.1
>>          "
>> Package pycairo was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `pycairo.pc'
>> to the PKG_CONFIG_PATH environment variable
>> No package 'pycairo' found
>> (etc)
>>
>> But I had just built and installed pycairo-1.17.0, and lookign at
>> the log from that, *everything* it installed was under
>> /usr/lib/python{2.7,3.6}/site-packages/ : not a pkgconfig file in
>> site.
>>
>> On previous builds (1.16.2, 1.16.3) I had pkgconfig files:
>>
>> /usr/lib/pkgconfig/py3cairo.pc
>> /usr/lib/pkgconfig/pycairo.pc
>>
>> The setup.py script is the usual mass of impenetrable python stuff,
>> but I see it at least reports if the pkgconfig files are not
>> installed.  And looking at my log, guess what:
>>
>> running install_pkgconfig
>> Skipping install_pkgconfig, not supported with bdist_egg
>>
>> Yeugh!
>>
>> Since one of the purposes of this build is to sort out a gimp
>> script, I'll revert to 1.16.3.
>>
>> Can anybody else confirm my results ?
> 
> Yes.  In my log for pycairo-1.16.3 I have:
> 
> Writing /usr/lib/pkgconfig/pycairo.pc
> 
> but no mention of pycairo.pc in my log for pycairo-1.17.0.
> 
> I'm not an experienced python person, but setup.py has some code about this at
> lines 294-343.  It includes comments:
> 
> # https://github.com/pygobject/pycairo/issues/83
> # The pkg-config file contains absolute paths depending on the
> # prefix. pip uses wheels as cache and when installing with --user
> # and then to a virtualenv, the wheel gets reused containing the
> # wrong paths. So in case bdist_wheel is used, just skip this command.
> 
> 
> My pycairo-1.17.0 log says:
> 
> Skipping install_pkgconfig, not supported with bdist_egg
> 
> It's late, but it sounds like we need another package, but we may be able to
> create a sed or patch.
> 
> Tomorrow I'll try
> 
> sed -i '/308,311/d' setup.py
> 

Looks like there is an "install_pkgconfig" target... So just:
python setup.py install_pkgconfig #as root
or
python3 setup.py install_pkgconfig #as root

Ahh, just tried to build pygobject3. The pycairo instructions need also:
python setup.py install_pycairo_header #as root
python3 setup.py install_pycairo_header #as root

Both lines are needed since the files installed are not the same (py3cairo.h
or pycairo.h.

Now pygobject builds OK. Trying to build gimp (book version, not RC). Will 
report.

Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to