]> git.proxmox.com Git - mirror_ovs.git/commit
python: Fix package requirements with old setuptools
authorTimothy Redaelli <tredaelli@redhat.com>
Fri, 22 Mar 2019 14:02:14 +0000 (15:02 +0100)
committerAlin Gabriel Serdean <aserdean@ovn.org>
Fri, 22 Mar 2019 14:44:03 +0000 (16:44 +0200)
commit2a6d9168d68d838604d03aa46084cce1b91ebee7
treeb003ad703857be19dd26526eb160e187cfc1a64c
parent272ee841d6c4eb8547c58b2f1cb959d14584e138
python: Fix package requirements with old setuptools

Commit 00fcc832d598 ("Update Python package requirements") added a
PEP 508 environment marker to install pywin32 on Windows systems.

This requires a new setuptools version (>= 20.5), but (at least)
RHEL/CentOS7 and Debian Jessie are using an older version of
setuptools and so python extension failed to build.

This commit adds "extras_require" instead of the PEP 508 environment
markers in order to have the conditional dependency of pywin32, but by
remaining compatible with the old setuptools versions.

CC: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
CC: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Fixes: 00fcc832d598 ("Update Python package requirements")
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
python/setup.py