-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 789 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Remove compiled bytecode of source files
dev-clean-pyc:
@find . -name '*.pyc' -exec rm -f {} +
@find . -name '*.pyo' -exec rm -f {} +
@find . -name '__pycache__' -exec rm -fr {} +
@find . -name '*.pytest_cache' -exec rm -fr {} +
# Setup the project environment by:
# - Run pipenv shell to start the virtual env
env:
pipenv --python=$(conda run which python) --site-packages
pipenv shell
# Install all libraries of package
install-all:
pipenv install --system --dev
# Install a package
install:
pipenv install $(pkg)
# Install a package in dev mode
install-dev:
pipenv install --dev $(pkg)
# Boot the game to be played by a human.
play:
python -m bin.play
# Run the model agent.
agent:
python -m bin.agent
# Randomly run actions in game.
sample:
python -m bin.sample