Skip to content

Commit 4859a10

Browse files
authored
Fixed the import issue (#2158)
* Fixed the import issue * make black happy * Use find_namespace_packages
1 parent 655cf59 commit 4859a10

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ml-agents/setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import setup, find_namespace_packages
22
from os import path
33
from io import open
44

@@ -23,7 +23,10 @@
2323
"License :: OSI Approved :: Apache Software License",
2424
"Programming Language :: Python :: 3.6",
2525
],
26-
packages=["mlagents.trainers"], # Required
26+
# find_namespace_packages will recurse through the directories and find all the packages
27+
packages=find_namespace_packages(
28+
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]
29+
),
2730
zip_safe=False,
2831
install_requires=[
2932
"mlagents_envs==0.8.2",

0 commit comments

Comments
 (0)