Hi, On 08/19/2016 06:41 PM, Todd Rme wrote:
- convert `python setup.py build` to `%python_build` and `python setup.py install` to `%python_install`. Or copy your python2-specific build instructions and change instances of python2 to python3 (or vice versa). What about unit tests? I could see either just doing it manually using %if_foo commands, executing an arbitrary python command for each python version, allowing packages to provide their own macros, or tying into update-alternatives somewhow. Ideally packages should support `python setup.py test` (and many do although they advice users to run e.g. nosetests), could be executed just by %{python_check} Alternatively, one could use the proposed %{python_exec}, e.g. %{python_exec} -m nose; or %{python_exec} -m pytest; or ...
Sebastian -- python programming - mail server - photo - video - https://sebix.at cryptographic key at https://sebix.at/DC9B463B.asc and on public keyservers