Unverified Commit 0394990a authored by WRH's avatar WRH Committed by GitHub
Browse files

Include spconv header files in the sdist package (#1766)



* include spconv/**.h in MANIFEST.in

* add more headers

* fix

* build from sdist in cpu runner

* remove original copy of src code in ci
Co-authored-by: default avatarwangruohui <wangruohui@local>
parent d69d985a
...@@ -111,8 +111,16 @@ jobs: ...@@ -111,8 +111,16 @@ jobs:
# pstuil is an optional package to detect the number of CPU for compiling mmcv # pstuil is an optional package to detect the number of CPU for compiling mmcv
- name: Install psutil - name: Install psutil
run: pip install psutil run: pip install psutil
- name: Build and install - name: Create sdist and untar
run: rm -rf .eggs && pip install -e . run: |
MMCV_WITH_OPS=1 python setup.py sdist
tar zxvf dist/mmcv-full* -C /tmp
rm -r mmcv
- name: Build and install from sdist
run: |
pushd /tmp/mmcv-full*
pip install -e .
popd
- name: Validate the installation - name: Validate the installation
run: python -c "import mmcv" run: python -c "import mmcv"
- name: Run unittests and generate coverage report - name: Run unittests and generate coverage report
......
...@@ -3,3 +3,4 @@ include mmcv/model_zoo/open_mmlab.json mmcv/model_zoo/deprecated.json mmcv/model ...@@ -3,3 +3,4 @@ include mmcv/model_zoo/open_mmlab.json mmcv/model_zoo/deprecated.json mmcv/model
include mmcv/ops/csrc/common/cuda/*.cuh mmcv/ops/csrc/common/cuda/*.hpp mmcv/ops/csrc/common/*.hpp include mmcv/ops/csrc/common/cuda/*.cuh mmcv/ops/csrc/common/cuda/*.hpp mmcv/ops/csrc/common/*.hpp
include mmcv/ops/csrc/pytorch/*.cpp mmcv/ops/csrc/pytorch/cuda/*.cu mmcv/ops/csrc/pytorch/cuda/*.cpp mmcv/ops/csrc/pytorch/cpu/*.cpp include mmcv/ops/csrc/pytorch/*.cpp mmcv/ops/csrc/pytorch/cuda/*.cu mmcv/ops/csrc/pytorch/cuda/*.cpp mmcv/ops/csrc/pytorch/cpu/*.cpp
include mmcv/ops/csrc/parrots/*.h mmcv/ops/csrc/parrots/*.cpp include mmcv/ops/csrc/parrots/*.h mmcv/ops/csrc/parrots/*.cpp
recursive-include mmcv/ops/csrc/ *.h *.hpp *.cpp *.cuh *.cu
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment