Re: [SIP] Multi-platform pyproject.toml (platform dependent values)
Phil Thompson <[email protected]>
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ PyQt mailing list [email protected] https://www.riverbankcomputing.com/mailman/listinfo/pyqt