Skip to content

Commit

Permalink
Officially disallowing 'python3-' prefix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ocket8888 committed Jul 31, 2018
1 parent 52b0407 commit 7bc1dbb
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@
import platform
from setuptools import setup

# Connvitals needs to have a python3-prefix for rpm distributions (LEGACY - DEPRECATED)
pkgname = "connvitals"
if platform.linux_distribution(full_distribution_name=False)[0] in {'centos', 'fedora', 'redhat'}\
or "bdist_rpm" in sys.argv:

pkgname = "python3-"+pkgname
import warnings
warnings.simplefilter("always", category=DeprecationWarning)
warn = "The use of RPM packages is now deprecated, pip is the official, preferred install method."
warnings.warn(warn, category=DeprecationWarning)

here = os.path.abspath(os.path.dirname(__file__))

sys.path.append(here)
Expand All @@ -45,7 +34,7 @@
long_description = f.read()

setup(
name=pkgname,
name="connvitals",
version=connvitals.__version__,
description='Checks a machines connection to a specific host or list of hosts',
long_description=long_description,
Expand Down

0 comments on commit 7bc1dbb

Please sign in to comment.