Closed plaszczy closed 4 years ago
Hi @plaszczy,
Thanks, I agree for pure Scala user this seems baroque at first sight... This trick is mainly to avoid duplicating the information about versions. However you do not need the python call if you specify the scala version number as argument:
# e.g. using Scala 2.11.8
./test_scala 2.11.8
The python call is only there when the script is called without explicit scala version.
maybe you could use directly a scala call. version number is availbale in scala.util.Properties.versionNumberString
The easiest thing would be to hardcode the default version inside the test script though...
Fixed in #120
test_scala uses a python call to retrieve SCALA_BINARY_VERSION. However -this requires setting the PYTHONPATH -it requires having py4j installed
it woulds be better to avoid any python calls.