From de6875dc69bb42e21add66850a2d04cd25aa1c58 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Thu, 20 Jun 2019 15:57:13 -0700 Subject: [PATCH 1/3] Fixed the import issue --- ml-agents/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml-agents/setup.py b/ml-agents/setup.py index 8d392531f9..1932cb5465 100644 --- a/ml-agents/setup.py +++ b/ml-agents/setup.py @@ -23,7 +23,7 @@ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.6", ], - packages=["mlagents.trainers"], # Required + packages=["mlagents.trainers", "mlagents.trainers.bc", "mlagents.trainers.ppo"], # Required zip_safe=False, install_requires=[ "mlagents_envs==0.8.2", From c6fd7b9dc53f6cf63aac2209a985e5e49542b89f Mon Sep 17 00:00:00 2001 From: Chris Elion Date: Thu, 20 Jun 2019 16:04:49 -0700 Subject: [PATCH 2/3] make black happy --- ml-agents/setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ml-agents/setup.py b/ml-agents/setup.py index 1932cb5465..13874eac7f 100644 --- a/ml-agents/setup.py +++ b/ml-agents/setup.py @@ -23,7 +23,11 @@ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.6", ], - packages=["mlagents.trainers", "mlagents.trainers.bc", "mlagents.trainers.ppo"], # Required + packages=[ + "mlagents.trainers", + "mlagents.trainers.bc", + "mlagents.trainers.ppo", + ], # Required zip_safe=False, install_requires=[ "mlagents_envs==0.8.2", From 282e9ea5c0a134e2181451a14bf0a6b7e091d0aa Mon Sep 17 00:00:00 2001 From: Ervin Teng Date: Thu, 20 Jun 2019 17:24:24 -0700 Subject: [PATCH 3/3] Use find_namespace_packages --- ml-agents/setup.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ml-agents/setup.py b/ml-agents/setup.py index 13874eac7f..355caa3f2a 100644 --- a/ml-agents/setup.py +++ b/ml-agents/setup.py @@ -1,4 +1,4 @@ -from setuptools import setup, find_packages +from setuptools import setup, find_namespace_packages from os import path from io import open @@ -23,11 +23,10 @@ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.6", ], - packages=[ - "mlagents.trainers", - "mlagents.trainers.bc", - "mlagents.trainers.ppo", - ], # Required + # find_namespace_packages will recurse through the directories and find all the packages + packages=find_namespace_packages( + exclude=["*.tests", "*.tests.*", "tests.*", "tests"] + ), zip_safe=False, install_requires=[ "mlagents_envs==0.8.2",