mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 06:10:34 +08:00
Initial commit
fbshipit-source-id: ad58e416e3ceeca85fae0583308968d04e78fe0d
This commit is contained in:
24
packaging/pytorch3d/conda_build_config.yaml
Normal file
24
packaging/pytorch3d/conda_build_config.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
blas_impl:
|
||||
- mkl # [x86_64]
|
||||
c_compiler:
|
||||
- vs2017 # [win]
|
||||
cxx_compiler:
|
||||
- vs2017 # [win]
|
||||
python:
|
||||
- 3.5
|
||||
- 3.6
|
||||
# This differs from target_platform in that it determines what subdir the compiler
|
||||
# will target, not what subdir the compiler package will be itself.
|
||||
# For example, we need a win-64 vs2008_win-32 package, so that we compile win-32
|
||||
# code on win-64 miniconda.
|
||||
cross_compiler_target_platform:
|
||||
- win-64 # [win]
|
||||
target_platform:
|
||||
- win-64 # [win]
|
||||
vc:
|
||||
- 14
|
||||
zip_keys:
|
||||
- # [win]
|
||||
- vc # [win]
|
||||
- c_compiler # [win]
|
||||
- cxx_compiler # [win]
|
||||
60
packaging/pytorch3d/meta.yaml
Normal file
60
packaging/pytorch3d/meta.yaml
Normal file
@@ -0,0 +1,60 @@
|
||||
package:
|
||||
name: pytorch3d
|
||||
version: "{{ environ.get('BUILD_VERSION') }}"
|
||||
|
||||
source:
|
||||
path: "{{ environ.get('SOURCE_ROOT_DIR') }}"
|
||||
|
||||
requirements:
|
||||
build:
|
||||
- {{ compiler('c') }} # [win]
|
||||
|
||||
host:
|
||||
- python
|
||||
- setuptools
|
||||
{{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
|
||||
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
|
||||
{{ environ.get('CONDA_CPUONLY_FEATURE') }}
|
||||
|
||||
run:
|
||||
- python
|
||||
- numpy >=1.11
|
||||
- six
|
||||
- torchvision >=0.5
|
||||
- fvcore
|
||||
{{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
|
||||
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
|
||||
|
||||
build:
|
||||
string: py{{py}}_{{ environ['CU_VERSION'] }}
|
||||
script: python setup.py install --single-version-externally-managed --record=record.txt # [not win]
|
||||
script_env:
|
||||
- CUDA_HOME
|
||||
- FORCE_CUDA
|
||||
- NVCC_FLAGS
|
||||
features:
|
||||
{{ environ.get('CONDA_CPUONLY_FEATURE') }}
|
||||
|
||||
test:
|
||||
imports:
|
||||
- pytorch3d
|
||||
source_files:
|
||||
- tests
|
||||
- docs
|
||||
requires:
|
||||
- pytest
|
||||
- scipy
|
||||
- mock
|
||||
- av
|
||||
- ca-certificates
|
||||
- typing
|
||||
commands:
|
||||
#pytest .
|
||||
python -m unittest discover -v -s tests
|
||||
|
||||
|
||||
about:
|
||||
home: https://github.com/facebookresearch/pytorch3d
|
||||
license: BSD
|
||||
license_file: LICENSE
|
||||
summary: '3d Geometry for pytorch'
|
||||
Reference in New Issue
Block a user