Skip to content

Commit 4e846df

Browse files
author
Vincent Moens
committed
Update
[ghstack-poisoned]
1 parent 1afe9a9 commit 4e846df

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import sys
1212
from pathlib import Path
1313

14-
from setuptools import Extension, setup
14+
from setuptools import Extension, find_packages, setup
1515
from setuptools.command.build_ext import build_ext
1616

1717
ROOT_DIR = Path(__file__).parent.resolve()
@@ -92,4 +92,7 @@ def get_extensions():
9292
"build_ext": CMakeBuild,
9393
"clean": clean,
9494
},
95+
packages=find_packages(
96+
exclude=("test", "tutorials", "packaging", "gallery", "docs")
97+
),
9598
)

test/smoke_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55

66

77
def test_imports():
8+
print("Importing numpy") # noqa
9+
import numpy # noqa
10+
11+
print("Importing torch") # noqa
12+
import torch # noqa
13+
14+
print("Importing tensordict") # noqa
815
from tensordict import TensorDict # noqa: F401
16+
17+
print("Importing tensordict nn") # noqa
918
from tensordict.nn import TensorDictModule # noqa: F401
1019

1120
# # Check that distributed is not imported

0 commit comments

Comments
 (0)