Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3370)

Unified Diff: pyaff4/setup.py

Issue 2681823004: New bugfix release 0.24.post3. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pyaff4/pyaff4/_version.py ('k') | pyaff4/version.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pyaff4/setup.py
diff --git a/pyaff4/setup.py b/pyaff4/setup.py
index 7a03c5bd637a7eeded04eb9a8f75995bdd694b5f..fe10df23529371b2a22080a786327ab7a2537e46 100644
--- a/pyaff4/setup.py
+++ b/pyaff4/setup.py
@@ -13,7 +13,6 @@
# the License.
"""This module installs the pyaff4 library."""
-import _version
from setuptools import setup
from setuptools.command.test import test as TestCommand
@@ -24,6 +23,10 @@ try:
except IOError:
long_description = ""
+ENV = {"__file__": __file__}
+exec open("pyaff4/_version.py").read() in ENV
+VERSION = ENV["get_versions"]()
+
class NoseTestCommand(TestCommand):
def finalize_options(self):
@@ -43,7 +46,7 @@ commands["test"] = NoseTestCommand
setup(
name='pyaff4',
long_description=long_description,
- version=_version.get_versions()["pep440"],
+ version=VERSION["pep440"],
cmdclass=commands,
description='Python Advanced Forensic Format Version 4 library.',
author='Michael Cohen',
« no previous file with comments | « pyaff4/pyaff4/_version.py ('k') | pyaff4/version.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698