Skip to content

Commit

Permalink
v0.3dev -- non-local installation fix (#46)
Browse files Browse the repository at this point in the history
For PiPy packaging.
  • Loading branch information
vmoens authored Jan 3, 2023
1 parent 508b6ce commit b09b5a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Empty file added mj_envs/envs/__init__.py
Empty file.
Empty file added mj_envs/robot/__init__.py
Empty file.
Empty file added mj_envs/utils/__init__.py
Empty file.
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,21 @@
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths

extra_files = package_files('mj_envs')

setup(
name='mj_envs',
version='0.3.0',
packages=find_packages(),
package_data={"": extra_files},
include_package_data=True,
description='environments simulated in MuJoCo',
long_description=read('README.md'),
url='https://github.com/vikashplus/mj_envs.git',
Expand Down

0 comments on commit b09b5a2

Please sign in to comment.