Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added the pypiwin32 package #1668

Merged
merged 4 commits into from
Feb 6, 2019
Merged

added the pypiwin32 package #1668

merged 4 commits into from
Feb 6, 2019

Conversation

xiaomaogy
Copy link
Contributor

No description provided.

@xiaomaogy
Copy link
Contributor Author

xiaomaogy commented Feb 2, 2019

@vincentpierre

The platform specific package is following the guidance of this doc. https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-platform-specific-dependencies

Pypiwin32 is better than pywin32 due to the reason stated here: https://mail.python.org/pipermail/python-win32/2016-October/013786.html

The change to test_ppo.py is due to the reason here: pytest-dev/pytest#3950

The windows doc change is inspired by this page: pypa/pip#3245

@Unity-Technologies Unity-Technologies deleted a comment Feb 2, 2019
@@ -42,15 +42,15 @@ def dummy_config():

@mock.patch('mlagents.envs.UnityEnvironment.executable_launcher')
@mock.patch('mlagents.envs.UnityEnvironment.get_communicator')
def test_ppo_policy_evaluate(mock_communicator, mock_launcher):
def test_ppo_policy_evaluate(mock_communicator, mock_launcher, dummy_config):
Copy link
Contributor

Choose a reason for hiding this comment

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

Has this been tested on both Windows and Mac ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

@@ -153,6 +153,12 @@ pip install -e .
This will complete the installation of all the required Python packages to run
the ML-Agents toolkit.

If you are stuck during this installation, you can try:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe adding a little more description of what being "stuck" is like and add a few lines describing what --no-cache-dir does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will change.

@@ -37,7 +37,8 @@
'docopt',
'pyyaml',
'protobuf>=3.6,<3.7',
'grpcio>=1.11.0,<1.12.0'],
'grpcio>=1.11.0,<1.12.0',
'pypiwin32==223;platform_system=="Windows"'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this tested on both Mac and Windows ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I tested this on Mac, Windows and Linux.

@vincentpierre
Copy link
Contributor

I think the documentation change could use a little more description. If the changes to setup and the tests have been tested, I see no problem with them and I think we can merge them.

@Unity-Technologies Unity-Technologies deleted a comment Feb 6, 2019
@xiaomaogy xiaomaogy merged commit 3b77fe9 into develop Feb 6, 2019
@xiaomaogy xiaomaogy deleted the develop-win32-package-fix branch February 6, 2019 00:37
LeSphax pushed a commit to LeSphax/ml-agents-1 that referenced this pull request May 3, 2020
* added the pypiwin32 package

* fixed the break on mac, fixed part of pytest above version 4

* added something to the windows to help unstuck people

* resolved the comment
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants