Merge branch 'KimSangYeon-DGU-version'

This commit is contained in:
Ryan Curtin
2019-11-25 15:26:40 -05:00
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -18,6 +18,8 @@
* Validate md5 of STB library after download (#2087).
* Add `__version__` to `__init__.py` (#2092).
### mlpack 3.2.1
###### 2019-10-01
* Enforce CMake version check for ensmallen (#2032).
+4
View File
@@ -140,6 +140,10 @@ if (BUILDING_PYTHON_BINDINGS)
COMMENT "Configuring setup.py...")
add_dependencies(python_configure python_copy)
add_dependencies(python_configured python_configure)
# Append the package version to __init__.py after all the imports are loaded.
file(APPEND ${CMAKE_BINARY_DIR}/src/mlpack/bindings/python/mlpack/__init__.py
"__version__='${PACKAGE_VERSION}'\n")
endif ()
# If we are building Markdown documentation, we have to run some setup after we