[issue28207] Use pkg-config to find dependencies

2019-12-10 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
nosy:  -xdegaye

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-30 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
nosy: +xdegaye

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-27 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Thanks Kubilay I got it.

Note to myself: gdb uses lots --with-foo-{include,lib}.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-26 Thread Kubilay Kocak

Kubilay Kocak added the comment:

This (adding support for pkg-config) should be done in tandem with adding 
--with-foo-{include,library} arguments for each *external* dependency, which 
can be used for: libffi, readline, libintl, openssl, sqlite, db*, among others.

Values obtained from pkg-config should then use the same variables, but only if 
they are/have not been specified at the command line (./configure).

Doing this and a few other best-practice, standard autoconf things will enable 
us to drastically simplify and remove hacks in the Python configure.ac, 
Makefile and setup.py's long term.

--
nosy: +koobs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-26 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Yes pkg-config is not ubiquitous. My idea is using it as a fallback, so that 
non-standard paths can be picked up easily.

> Note the bootstrap issue with that idea though; you'll need to make sure 
> _posixsubprocess is built before importing subprocess.

distutils.spawn.spawn or os.system can be used. setup.py uses the latter.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-26 Thread Ned Deily

Ned Deily added the comment:

Any solution using pkg-config would need to take into account that pkg-config 
may not be available (by default) on platforms we support; for example, AFAIK, 
Apple does not ship pkg-config in the base OS or any of its developer tools.  
And the solution would need to be careful to not break the ability to use the 
subset of Distutils the top-level setup.py needs to bootstrap build the 
standard library.  Also keep in mind that a lot of this proposed functionality 
is (or should be) available today by using Modules/Setup.local.

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-26 Thread Zachary Ware

Zachary Ware added the comment:

Note the bootstrap issue with that idea though; you'll need to make sure 
_posixsubprocess is built before importing subprocess.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-26 Thread Christian Heimes

Christian Heimes added the comment:

Simple implementation idea:

* add a pkg_config option to Extension()
* run subprocess.call(["pkg-config", self.pkg_config, "--exists"])
* if return value is 0, extend self.extra_compile_args with ["pkg-config", 
self.pkg_config, "--cflags"] and self.extra_link_args with ["pkg-config", 
self.pkg_config, "--libs"]
* otherwise print a warning

We could split and parse the output to handle -I, -L and -l in a more elegant 
way.

--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-26 Thread Chi Hsuan Yen

Changes by Chi Hsuan Yen :


--
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-26 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Thanks. I'll give it a try.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28207] Use pkg-config to find dependencies

2016-09-25 Thread Zachary Ware

Zachary Ware added the comment:

I don't have any philosophical opposition to using pkg-config, but it would be 
nice to avoid making configure/Makefile/setup.py any more complex than they 
already are.  If you can somehow simplify those files (without breaking 
anything) by using pkg-config, I'd be all for it :)

Resetting the version to 3.7, this feels like a pretty big change.  If it turns 
out well, we can consider backporting it later.

--
components: +Build
stage:  -> needs patch
title: SQLite headers are not searched in custom locations -> Use pkg-config to 
find dependencies
versions: +Python 3.7 -Python 2.7, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com