Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Use modern way of getting linux distro info
Browse files Browse the repository at this point in the history
This avoids a deprecation warning by Python.
  • Loading branch information
mhucka committed Oct 4, 2019
1 parent 50c1601 commit 4b2c72f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

release := $(shell egrep 'version.*=' lostit/__version__.py | awk '{print $$3}' | tr -d "'")
platform := $(shell python3 -c 'import sys; print(sys.platform)')
distro := $(shell python3 -c 'import platform; print(platform.dist()[0].lower())')
linux_vers := $(shell python3 -c 'import platform; print(platform.dist()[1].lower())' | cut -f1-2 -d'.')
distro := $(shell python3 -c 'import distro; print(distro.linux_distribution(False)[0])')
linux_vers := $(shell python3 -c 'import distro; print(distro.linux_distribution(False)[1])' | cut -f1-2 -d'.')
macos_vers := $(shell sw_vers -productVersion 2>/dev/null | cut -f1-2 -d'.' || true)
github-css := dev/github-css/github-markdown-css.html

Expand Down

0 comments on commit 4b2c72f

Please sign in to comment.