[PyQt] [SIP] Multi-platform pyproject.toml (platform dependent values)

Matteo Bertini naufraghi at develer.com
Wed Dec 11 15:46:06 GMT 2019


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.

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?

Thanks,
Matteo

-- 
/ Matteo Bertini
\ naufraghi at develer.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20191211/3a36eeb1/attachment.html>


More information about the PyQt mailing list