mirror of https://github.com/open-mmlab/mmcv.git
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: wangruohui <wangruohui@local>pull/1775/head
parent
d69d985abd
commit
0394990a47
|
@ -111,8 +111,16 @@ jobs:
|
|||
# pstuil is an optional package to detect the number of CPU for compiling mmcv
|
||||
- name: Install psutil
|
||||
run: pip install psutil
|
||||
- name: Build and install
|
||||
run: rm -rf .eggs && pip install -e .
|
||||
- name: Create sdist and untar
|
||||
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
|
||||
run: python -c "import mmcv"
|
||||
- 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
|
|||
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/parrots/*.h mmcv/ops/csrc/parrots/*.cpp
|
||||
recursive-include mmcv/ops/csrc/ *.h *.hpp *.cpp *.cuh *.cu
|
||||
|
|
Loading…
Reference in New Issue