From: FC Stegerman <flx@obfusk.net>
Last-Update: Fri, 3 Feb 2023 18:45:56 +0100
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026514#37
Bug-Debian: https://bugs.debian.org/1026514
Description: Fix setup.py

--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,8 @@ from setuptools import setup
 
 def get_setup_version(reponame):
     """Use autover to get up to date version."""
+    if version := os.environ.get("DEB_VERSION_UPSTREAM"):
+        return version
     # importing self into setup.py is unorthodox, but param has no
     # required dependencies outside of python
     from param.version import Version
