tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
216 stars 76 forks source link

./autogen --without-python3 should generate python2 package #15

Closed dougsland closed 7 years ago

dougsland commented 8 years ago

Due static rule in spec, 'make rpm' is generating python2 for fedora or distro based on RHEL >= 8. Might be useful to users to still select python2.

Hits 1 from spec: %if 0%{?fedora} || 0%{?rhel} >= 8 %global with_python3 1 %else %global with_python2 1 %endif

Hint2: We might create a AC_SUBS in configure.ac to determine the "%global python{NUMBER_VERSION} 1"