Skip to content

Commit

Permalink
setup.py: Set the version number
Browse files Browse the repository at this point in the history
Previously this was trying to import the version from pylorax. This
cannot work if the dependencies have not yet been installed, resulting
in a 'devel' version showing up in unexpected places. It actually never
really worked right.

Lorax uses tito for releases, and it understands how to update setup.py
version numbers, so drop the use of 'devel' and set the version to a
string.

Fixes #1278
  • Loading branch information
bcl committed Nov 1, 2022
1 parent 9133726 commit 7a3a7dc
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from setuptools import setup
import os
import sys


# config file
data_files = [("/etc/lorax", ["etc/lorax.conf"]),
@@ -18,20 +16,8 @@
"src/sbin/livemedia-creator"]))
data_files.append(("/usr/bin", ["src/bin/image-minimizer", "src/bin/mkksiso"]))

# get the version
sys.path.insert(0, "src")
try:
import pylorax.version
except ImportError:
vernum = "devel"
else:
vernum = pylorax.version.num
finally:
sys.path = sys.path[1:]


setup(name="lorax",
version=vernum,
version="38.1",
description="Lorax",
long_description="Tools for creating bootable images, including the Anaconda boot.iso",
author="Martin Gracik, Will Woods <[email protected]>, Brian C. Lane <[email protected]>",

0 comments on commit 7a3a7dc

Please sign in to comment.