Farama-Foundation / Miniworld

Simple and easily configurable 3D FPS-game-like environments for reinforcement learning
http://miniworld.farama.org/
Apache License 2.0
694 stars 129 forks source link

Distribute textures and meshes with the package. #35

Closed shagunsodhani closed 3 years ago

shagunsodhani commented 3 years ago

Fixes #34.

In the project root

(mtenv) ➜  gym-miniworld git:(fix-34) python setup.py sdist
....
(mtenv) ➜  gym-miniworld git:(fix-34) ls
LICENSE  MANIFEST.in  README.md  benchmark.py  dist  docs  experiments  gym_miniworld  gym_miniworld.egg-info  images  manual_control.py  pytorch-a2c-ppo-acktr  run_tests.py  scripts  setup.py
(mtenv) ➜  gym-miniworld git:(fix-34) cd dist
(mtenv) ➜  dist git:(fix-34) ls
gym_miniworld-2018.8.1.tar.gz
(mtenv) ➜  dist git:(fix-34) tar -xf gym_miniworld-2018.8.1.tar.gz
(mtenv) ➜  dist git:(fix-34) ls
gym_miniworld-2018.8.1  gym_miniworld-2018.8.1.tar.gz
(mtenv) ➜  dist git:(fix-34) ls gym_miniworld-2018.8.1/gym_miniworld
__init__.py  entity.py  envs  math.py  meshes  miniworld.py  objmesh.py  opengl.py  params.py  random.py  textures  utils.py  wrappers.py

In a separate project

(mtenv) ➜  mtenv git:(mpte-fix) ✗ pip install -e git+https://github.com/shagunsodhani/gym-miniworld.git@31371f37ed1501557d0288a90ad3fc147397fda3#egg=gym-miniworld

Looking in indexes: https://pypi.org/simple, http://webservice
Obtaining gym-miniworld from git+https://github.com/shagunsodhani/gym-miniworld.git@31371f37ed1501557d0288a90ad3fc147397fda3#egg=gym-miniworld
  Cloning https://github.com/shagunsodhani/gym-miniworld.git (to revision 31371f37ed1501557d0288a90ad3fc147397fda3) to ./src/gym-miniworld
Requirement already satisfied: gym>=0.9.0 in /private/home/sodhani/.local/lib/python3.8/site-packages (from gym-miniworld) (0.18.0)
Requirement already satisfied: numpy>=1.10.0 in /private/home/sodhani/.conda/envs/mtenv/lib/python3.8/site-packages (from gym-miniworld) (1.19.4)
Requirement already satisfied: pyglet in /private/home/sodhani/.local/lib/python3.8/site-packages (from gym-miniworld) (1.5.0)
Requirement already satisfied: scipy in /private/home/sodhani/.conda/envs/mtenv/lib/python3.8/site-packages (from gym>=0.9.0->gym-miniworld) (1.6.0)
Requirement already satisfied: cloudpickle<1.7.0,>=1.2.0 in /private/home/sodhani/.conda/envs/mtenv/lib/python3.8/site-packages (from gym>=0.9.0->gym-miniworld) (1.6.0)
Requirement already satisfied: Pillow<=7.2.0 in /private/home/sodhani/.local/lib/python3.8/site-packages (from gym>=0.9.0->gym-miniworld) (7.2.0)
Requirement already satisfied: future in /private/home/sodhani/.conda/envs/mtenv/lib/python3.8/site-packages (from pyglet->gym-miniworld) (0.18.2)
Installing collected packages: gym-miniworld
  Running setup.py develop for gym-miniworld
Successfully installed gym-miniworld
(mtenv) ➜  mtenv git:(mpte-fix) ✗ ls src/gym-miniworld/gym_miniworld/
__init__.py  entity.py  envs  math.py  meshes  miniworld.py  objmesh.py  opengl.py  params.py  random.py  textures  utils.py  wrappers.py
maximecb commented 3 years ago

Easy fix then! Thanks @shagunsodhani !

I will update the pip package this afternoon 👌

maximecb commented 3 years ago

Pip package updated :)