Skip to content

Commit

Permalink
Handle building on CentOS
Browse files Browse the repository at this point in the history
On CentOS you get the following output:

    >>> import platform
    >>> platform.dist()
    ('centos', '7.5.1804', 'Core')
  • Loading branch information
ekohl authored and daviddavis committed Nov 9, 2018
1 parent b10d313 commit b6f269d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streamer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# In EL twisted is still has sub-packages.
dist = platform.dist()
if dist[0] == 'redhat' and int(float(dist[1])) <= 7:
if dist[0] in ('redhat', 'centos') and int(dist[1].split('.', 1)[0]) <= 7:
twisted = ['twisted-core', 'twisted-web']
else:
twisted = ['twisted']
Expand Down

0 comments on commit b6f269d

Please sign in to comment.