Skip to content

Commit 1a195e3

Browse files
feat: export my_torch tool as console_scripts
1 parent b18706a commit 1a195e3

5 files changed

Lines changed: 4 additions & 6 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Makefile
66
##
77

8-
NAME = my_torch_analyzer
8+
NAME = my_torch_analyzer my_torch_generator
99

1010
all: $(NAME)
1111

@@ -14,7 +14,7 @@ venv:
1414
venv/bin/pip install -e .
1515

1616
$(NAME): venv
17-
ln -s venv/bin/$@ $@
17+
for d in $@; do ln -s {venv/bin/,}$@; done
1818

1919
.PHONY: all $(NAME)
2020

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ where = src
1919

2020
[options.entry_points]
2121
console_scripts =
22-
my_torch_analyzer = my_torch.main:main
22+
my_torch_analyzer = my_torch.tools.my_torch_analyzer:main
23+
my_torch_generator = my_torch.tools.my_torch_generator:main
2324

2425
[options.extras_require]
2526
dev =

src/my_torch/main.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)