Skip to content

Commit d715ccf

Browse files
author
Bachibouzouk
committed
Explain explicitely the steps in prepare_package.py
1 parent fb55bc2 commit d715ccf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

prepare_package.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
import shutil
22
import os
33

4-
# Remove the files built by `python setup.py sdist bdist_wheel`
4+
# Remove the folders generated by `python setup.py sdist bdist_wheel`
55
for dist_file in ("dist", "build", "src/multi_vector_simulator.egg-info"):
66
shutil.rmtree(dist_file, ignore_errors=True)
77

88
# Delete the previous package_data folder
99
pkg_data_folder = os.path.join("src", "multi_vector_simulator", "package_data")
1010
shutil.rmtree(pkg_data_folder, ignore_errors=True)
1111

12-
# Reconstitute the package_data folder
12+
# Reconstitute the package_data folder by copying the content of
13+
# `input_template` into `src/multi-vector-simulator/package_data/input_template`,
14+
# `report/asset` into `src/multi-vector-simulator/package_data/assets` and
15+
# `tests/inputs` into `src/multi-vector-simulator/package_data/inputs`
16+
1317
for pgk_data_src, pkg_data_dest in zip(
1418
("report/assets", "tests/inputs", "input_template"),
1519
("assets", "inputs", "input_template"),

0 commit comments

Comments
 (0)