Repository: pytorch
Issue: Installs empty directories under Python's sitelibdir
Labels: module: build,triaged

The FreeBSD ports framework complains:

```
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/caffe2_protos.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/caffe2_pybind11_state.dir/python
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/core/dispatch
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/core/op_registration
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/cpu
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/detail
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/cpu
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/mkl
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/mkldnn
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/quantized/cpu
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/sparse
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/quantized
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/TH/vector
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/aten/src/THNN
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/test/cpp/jit
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/third_party/miniz-2.0.8
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/api/src/data/datasets
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/api/src/data/samplers
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/api/src/nn/modules
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/api/src/optim
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/api/src/serialize
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/autograd/functions
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/autograd/generated
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/distributed/rpc
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/jit/fuser/cpu
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/jit/generated
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/jit/passes/utils
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/jit/script
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/jit/testing
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/__/torch/csrc/utils
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/contrib/aten
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/core/nomnigraph/Representations
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/core/nomnigraph/tests
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/db
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/distributed
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/mpi
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/observers
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/onnx
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/operators/experimental/c10/cpu
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/operators/rnn
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/opt
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/perfkernels
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/predictor/emulator
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/quantization/server
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/queue
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/serialize
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/sgd
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/share/contrib/depthwise
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/transforms
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/utils/math
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/CMakeFiles/torch.dir/utils/threadpool
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/src/ATen/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/src/ATen/cmake-exports
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/src/ATen/core/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/src/ATen/quantized/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/src/ATen/test/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/src/TH/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/aten/src/THNN/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/contrib/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/contrib/aten/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/contrib/gloo/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/contrib/nccl/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/contrib/opencl/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/contrib/prof/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/contrib/shm_mutex/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/core/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/core/nomnigraph/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/db/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/distributed/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/ideep/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/image/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/lib_c10d/CMakeFiles/c10d.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/mobile/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/mobile/contrib/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/mobile/contrib/ios/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/mpi/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/observers/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/onnx/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/onnx/torch_ops/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/operators/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/operators/rnn/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/opt/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx512.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/predictor/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/predictor/emulator/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/proto/CMakeFiles/Caffe2_PROTO.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/python/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/quantization/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/quantization/server/CMakeFiles/caffe2_dnnlowp_avx2_ops.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/queue/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/serialize/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/sgd/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/share/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/share/contrib/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/share/contrib/depthwise/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/api/src/python
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/functions
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/c10d
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/distributed/rpc
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/jit/passes/onnx
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/jit/script
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/multiprocessing
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/nn
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/onnx
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/tensor
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/CMakeFiles/torch_python.dir/csrc/utils
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/lib/libshm/CMakeFiles/shm.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/torch/lib/libshm/CMakeFiles/torch_shm_manager.dir
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/transforms/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/utils/CMakeFiles
Error: Orphaned: @dir %%PYTHON_SITELIBDIR%%/caffe2/video/CMakeFiles
```

There's no need for emprt directories. Particularly, installing directories called ```CMakeFiles``` is meaningless.

```1.0rc0-6216-geabfca357```