[PyQt] [SIP] Multi-platform pyproject.toml (platform dependent values)
Phil Thompson
phil at riverbankcomputing.com
Wed Dec 11 22:04:44 GMT 2019
On 11/12/2019 15:46, Matteo Bertini wrote:
> Hi,
>
> I'm starting some experiments with sip5, and the single platform usage
> works like a charm (Linux, x86_64), thanks Phil!
>
> 1) I have some platform dependent values for: `include-dirs`,
> `library-dirs` and `libraries`. The current `setup.py` file I'm porting
> has
> some `if sys.platform`s, what is the suggested approach to reach the
> same
> result?
>
> I tried using this syntax
> https://www.python.org/dev/peps/pep-0566/#environment-markers:
>
> libraries = ["usb-1.0; 'linux' in sys_platform"]
>
> But seems to be unsupported.
If you need to do any introspection (ie. you need to write code) then
you need a project.py file.
> 2) I tried using paths relative to `pyproject.toml` bus sip fails not
> finding my `.h` files (found using the absolute path), what is the best
> practice here?
Configure 'include_dirs'?
Phil
More information about the PyQt
mailing list