Skip to content

Commit

Permalink
move post_install to balrog scripts (balrog-ai#9)
Browse files Browse the repository at this point in the history
* move post_install to balrog scripts

* update setup.py
  • Loading branch information
BartekCupial authored Dec 3, 2024
1 parent b6d4a58 commit c905ac2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Empty file added balrog/scripts/__init__.py
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ COPY . /opt/balrog/
WORKDIR /opt/balrog

RUN pip install '.'
RUN python post_install.py
RUN balrog-post-install

CMD ["/bin/bash"]
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
entry_points={
"console_scripts": [
"balrog-post-install=post_install:main",
"balrog-post-install=balrog.scripts.post_install:main",
],
},
extras_require={
Expand All @@ -52,6 +52,15 @@
},
package_dir={"": "./"},
packages=setuptools.find_packages(where="./", include=["balrog*"]),
package_data={
"balrog": [
"config/config.yaml",
"environments/nle/achievements.json",
"environments/nle/Hack-Regular.ttf",
"environments/nle/tiles.pkl",
"environments/nle/Tiles16x16.png",
]
},
include_package_data=True,
python_requires=">=3.8",
)

0 comments on commit c905ac2

Please sign in to comment.