Skip to content

Commit 463af69

Browse files
setup.py added
1 parent b49b5a2 commit 463af69

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

setup.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import os
2+
import shutil
3+
from setuptools import setup
4+
5+
6+
PICA_PKG_DIR = 'pica'
7+
DATA_FILES_TO_COPY = {
8+
'': [
9+
'README.md',
10+
'LICENSE',
11+
'CHANGELOG.md',
12+
'CONTRIBUTING.md',
13+
],
14+
'docs': [
15+
'docs/User_Manual.md',
16+
'docs/Instruments_Manuals_Lists.md',
17+
]
18+
}
19+
20+
for dest_subdir, files in DATA_FILES_TO_COPY.items():
21+
dest_dir = os.path.join(PICA_PKG_DIR, dest_subdir)
22+
if not os.path.exists(dest_dir):
23+
os.makedirs(dest_dir)
24+
25+
for file_path in files:
26+
if os.path.exists(file_path):
27+
shutil.copy(file_path, dest_dir)
28+
29+
30+
setup()

0 commit comments

Comments
 (0)