Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Install script for setuptools."""

import os
from setuptools import find_namespace_packages
from setuptools import find_packages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change necessary?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think rlax is a namespace so find_packages should suffice. find_namespace_packages add docs to the package which is not desired (I can exclude that of course).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I think you are suggesting this because dm-haiku uses this. But I just realized that dm-haiku has a similar problem, I will open another issue there as well.

from setuptools import setup

_CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -52,7 +52,7 @@ def _parse_requirements(path):
long_description_content_type='text/markdown',
author_email='rlax-dev@google.com',
keywords='reinforcement-learning python machine learning',
packages=find_namespace_packages(exclude=['*_test.py']),
packages=find_packages(exclude=['*_test.py', 'examples']),
install_requires=_parse_requirements(
os.path.join(_CURRENT_DIR, 'requirements', 'requirements.txt')),
tests_require=_parse_requirements(
Expand Down