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

Matteo Bertini <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CANYtKwip9W3+2FM_yZsLXOrEMaCtUp5vUtE1esNkpmB1DZq5hQ@mail.gmail.com>
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
\ [email protected]

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.