File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,23 @@ def my_test_suite():
19
19
return test_suite
20
20
21
21
22
+ def get_version (version ):
23
+ """
24
+ Detect the mvn build versus the local python setup.py install run.
25
+ :param version: the new version string to be applied
26
+ :return: the mvn version, or local version number
27
+ """
28
+ if 'project.python.package.version' in version :
29
+ return '0.0.1local'
30
+ return version
31
+
32
+
22
33
setup (
23
34
name = 'opengrok-tools' ,
24
35
# The package version is taken from maven.
25
36
# this "variable" is replaced by maven on the fly so don't change it here
26
37
# see pom.xml for this module
27
- version = '${project.python.package.version}' ,
38
+ version = get_version ( '${project.python.package.version}' ) ,
28
39
packages = [
29
40
'opengrok_tools' ,
30
41
'opengrok_tools.utils' ,
You can’t perform that action at this time.
0 commit comments