Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 98577e5

Browse files
committed
Generate only version number, no suffixes (e.g. dirty)
1 parent 3f95d15 commit 98577e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ object BokehBuild extends Build {
137137
sourceGenerators in Compile += Def.task {
138138
val cmd = "python" :: "-c" :: "import bokeh; print(bokeh.__version__)" :: Nil
139139
val proc = Process(cmd, None, "PYTHONPATH" -> "bokehjs/")
140-
val version = Try { proc !! }.map(_.trim) getOrElse {
140+
val version = Try { proc !! }.map(_.trim.split("-")(0)) getOrElse {
141141
sys.error("could not run python to determine bokeh version")
142142
}
143143
val srcDir = (sourceManaged in Compile).value

0 commit comments

Comments
 (0)