[apycotlib] embed a copy of __pkginfo__ in apycotlib
authorPaul Tonelli <paul.tonelli@logilab.fr>
Mon, 09 Sep 2013 17:37:30 +0200
changeset 1448 74288b916a1f
parent 1447 56a80e462b47
child 1449 9dcf514fb32f
[apycotlib] embed a copy of __pkginfo__ in apycotlib made using a symlink that points to the original __pkginfo__. The apycotlib library can be installed separately from the cube. It must have a possibility to check its version without the cube
_apycotlib/__pkginfo__.py
_apycotlib/atest.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_apycotlib/__pkginfo__.py	Mon Sep 09 17:37:30 2013 +0200
@@ -0,0 +1,1 @@
+../__pkginfo__.py
\ No newline at end of file
--- a/_apycotlib/atest.py	Tue Apr 22 15:53:30 2014 +0200
+++ b/_apycotlib/atest.py	Mon Sep 09 17:37:30 2013 +0200
@@ -19,7 +19,7 @@
 
 from logilab.common.proc import ResourceError
 
-from cubes.apycot.__pkginfo__ import version as apycot_version
+from __pkginfo__ import version as apycot_version
 
 from apycotlib import (ConfigError, Command, get_registered,
                        SUCCESS, SKIPPED, ERROR, KILLED)