forked from geopm/geopm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christopher M. Cantalupo <christopher.m.cantalupo@intel.com>
- Loading branch information
1 parent
412055b
commit aecf6dd
Showing
4 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
release/fedora/0003-Fix-import-error-handling-for-setuptools_scm.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
From e6178b650da9b76686b294939dcee859479487d7 Mon Sep 17 00:00:00 2001 | ||
From: "Christopher M. Cantalupo" <christopher.m.cantalupo@intel.com> | ||
Date: Tue, 25 Jun 2024 18:04:56 -0700 | ||
Subject: [PATCH 3/3] Fix import error handling for setuptools_scm | ||
|
||
Signed-off-by: Christopher M. Cantalupo <christopher.m.cantalupo@intel.com> | ||
--- | ||
geopmdpy/setup.py | 2 +- | ||
geopmpy/setup.py | 2 +- | ||
2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/geopmdpy/setup.py b/geopmdpy/setup.py | ||
index e2e090e52..d4cacfd27 100644 | ||
--- a/geopmdpy/setup.py | ||
+++ b/geopmdpy/setup.py | ||
@@ -8,9 +8,9 @@ import os | ||
|
||
package_name = 'geopmdpy' | ||
|
||
+script_dir = os.path.dirname(os.path.realpath(__file__)) | ||
try: | ||
from setuptools_scm import get_version | ||
- script_dir = os.path.dirname(os.path.realpath(__file__)) | ||
version = get_version(f'{script_dir}/..') | ||
with open(f'{script_dir}/{package_name}/VERSION', 'w') as fid: | ||
fid.write(version) | ||
diff --git a/geopmpy/setup.py b/geopmpy/setup.py | ||
index 719ab1405..095276d56 100644 | ||
--- a/geopmpy/setup.py | ||
+++ b/geopmpy/setup.py | ||
@@ -8,9 +8,9 @@ import os | ||
|
||
package_name = 'geopmpy' | ||
|
||
+script_dir = os.path.dirname(os.path.realpath(__file__)) | ||
try: | ||
from setuptools_scm import get_version | ||
- script_dir = os.path.dirname(os.path.realpath(__file__)) | ||
version = get_version(f'{script_dir}/..') | ||
with open(f'{script_dir}/{package_name}/VERSION', 'w') as fid: | ||
fid.write(version) | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters