diff --git a/ocrd/setup.py b/ocrd/setup.py index a675ab4c9..929849c9f 100644 --- a/ocrd/setup.py +++ b/ocrd/setup.py @@ -6,7 +6,7 @@ class build(orig_build): def finalize_options(self): vers = ' == ' + self.distribution.metadata.version self.distribution.install_requires = [ - req + vers if req.startswith('ocrd') else req + req + vers if req.startswith('ocrd') and '==' not in req else req for req in self.distribution.install_requires ] orig_build.finalize_options(self) diff --git a/ocrd_modelfactory/setup.py b/ocrd_modelfactory/setup.py index a675ab4c9..929849c9f 100644 --- a/ocrd_modelfactory/setup.py +++ b/ocrd_modelfactory/setup.py @@ -6,7 +6,7 @@ class build(orig_build): def finalize_options(self): vers = ' == ' + self.distribution.metadata.version self.distribution.install_requires = [ - req + vers if req.startswith('ocrd') else req + req + vers if req.startswith('ocrd') and '==' not in req else req for req in self.distribution.install_requires ] orig_build.finalize_options(self) diff --git a/ocrd_models/setup.py b/ocrd_models/setup.py index a675ab4c9..929849c9f 100644 --- a/ocrd_models/setup.py +++ b/ocrd_models/setup.py @@ -6,7 +6,7 @@ class build(orig_build): def finalize_options(self): vers = ' == ' + self.distribution.metadata.version self.distribution.install_requires = [ - req + vers if req.startswith('ocrd') else req + req + vers if req.startswith('ocrd') and '==' not in req else req for req in self.distribution.install_requires ] orig_build.finalize_options(self) diff --git a/ocrd_network/setup.py b/ocrd_network/setup.py index a675ab4c9..929849c9f 100644 --- a/ocrd_network/setup.py +++ b/ocrd_network/setup.py @@ -6,7 +6,7 @@ class build(orig_build): def finalize_options(self): vers = ' == ' + self.distribution.metadata.version self.distribution.install_requires = [ - req + vers if req.startswith('ocrd') else req + req + vers if req.startswith('ocrd') and '==' not in req else req for req in self.distribution.install_requires ] orig_build.finalize_options(self) diff --git a/ocrd_validators/setup.py b/ocrd_validators/setup.py index a675ab4c9..929849c9f 100644 --- a/ocrd_validators/setup.py +++ b/ocrd_validators/setup.py @@ -6,7 +6,7 @@ class build(orig_build): def finalize_options(self): vers = ' == ' + self.distribution.metadata.version self.distribution.install_requires = [ - req + vers if req.startswith('ocrd') else req + req + vers if req.startswith('ocrd') and '==' not in req else req for req in self.distribution.install_requires ] orig_build.finalize_options(self)