-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name collision with an abandoned project named 'crit' in pypi causes pip to show crit (CRiu Image Tool) as outdated. This patch updates crit to use the same version and license as criu. Fixes #1878 Signed-off-by: Radostin Stoyanov <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
import os | ||
from distutils.core import setup | ||
|
||
criu_version = "0.0.1" | ||
env = os.environ | ||
|
||
if 'CRIU_VERSION_MAJOR' in env and 'CRIU_VERSION_MINOR' in env: | ||
criu_version = '{}.{}'.format( | ||
env['CRIU_VERSION_MAJOR'], | ||
env['CRIU_VERSION_MINOR'] | ||
) | ||
|
||
if 'CRIU_VERSION_SUBLEVEL' in env and env['CRIU_VERSION_SUBLEVEL']: | ||
criu_version += '.' + env['CRIU_VERSION_SUBLEVEL'] | ||
|
||
setup(name="crit", | ||
version="0.0.1", | ||
version=criu_version, | ||
description="CRiu Image Tool", | ||
author="CRIU team", | ||
author_email="[email protected]", | ||
license="GPLv2", | ||
url="https://github.com/checkpoint-restore/criu", | ||
package_dir={'pycriu': 'lib/py'}, | ||
packages=["pycriu", "pycriu.images"], | ||
|