• Lei Wang's avatar
    [Dist] Provide an option to include commit ID in version (#884) · c861d8a2
    Lei Wang authored
    * Update MANIFEST.in and setup.py to include commit ID in versioning and adjust included files
    
    - Modified MANIFEST.in to include shared library files `libtvm.so` and `libtvm_runtime.so`.
    - Updated setup.py to conditionally include the commit ID in the package version based on the `WITH_COMMITID` environment variable.
    - Enhanced versioning logic in version.py to use a truncated commit ID for better compatibility.
    
    * Update setup.py and related scripts to enable commit ID inclusion in package metadata
    
    - Changed the default value of the `WITH_COMMITID` environment variable in setup.py to "True".
    - Updated tox.ini to set `WITH_COMMITID` to "TRUE" for the testing environment and "FALSE" for the build environment.
    - Modified pypi_distribution.sh to pass `WITH_COMMITID=FALSE` during the wheel build process.
    
    * Update MANIFEST.in to include additional files and directories for packaging
    
    - Added VERSION, CMakeLists.txt, and various requirements files to the package.
    - Included recursive inclusion of source files and third-party libraries, while excluding specific clang and llvm directories.
    c861d8a2
setup.py 34.2 KB