diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-19 14:42:01 -0700 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-19 14:42:01 -0700 |
commit | 7389b4874d5685daa869eff6166dda7491a6ab10 (patch) | |
tree | 2ac4d1b4a38b6c61f282ca50f2e63e0c6dc37bb8 /scripts/internal | |
parent | 08c24c0767a83faaa8fd9e1fb54723b6dc78f00c (diff) | |
parent | aeceeb74b7bdd2d6f5769f9dfcce9256ddd7832c (diff) | |
download | psutil-7389b4874d5685daa869eff6166dda7491a6ab10.tar.gz |
win, C, refact: rename process_*.c files to proc_*.cwin-c-refact
Diffstat (limited to 'scripts/internal')
-rwxr-xr-x | scripts/internal/generate_manifest.py | 8 | ||||
-rwxr-xr-x | scripts/internal/winmake.py | 9 |
2 files changed, 15 insertions, 2 deletions
diff --git a/scripts/internal/generate_manifest.py b/scripts/internal/generate_manifest.py index a1ed6b38..3d3e83b0 100755 --- a/scripts/internal/generate_manifest.py +++ b/scripts/internal/generate_manifest.py @@ -23,12 +23,16 @@ def sh(cmd): def main(): - files = sh("git ls-files").split('\n') - for file in files: + files = [] + for file in sh("git ls-files").split('\n'): if file.startswith(SKIP_PREFIXES) or \ os.path.splitext(file)[1].lower() in SKIP_EXTS or \ file in SKIP_FILES: continue + if file not in files: + files.append(file) + + for file in files: print("include " + file) diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 16de3908..f92b2a89 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -515,6 +515,14 @@ def download_appveyor_wheels(): "--user giampaolo --project psutil" % PYTHON) +def generate_manifest(): + """Generate MANIFEST.in file.""" + script = "scripts\\internal\\generate_manifest.py" + out = subprocess.check_output([PYTHON, script], text=True) + with open("MANIFEST.in", "w", newline="\n") as f: + f.write(out) + + def get_python(path): if not path: return sys.executable @@ -560,6 +568,7 @@ def parse_args(): sp.add_parser('clean', help="deletes dev files") sp.add_parser('coverage', help="run coverage tests.") sp.add_parser('download-appveyor-wheels', help="download wheels.") + sp.add_parser('generate-manifest', help="generate MANIFEST.in file") sp.add_parser('help', help="print this help") sp.add_parser('install', help="build + install in develop/edit mode") sp.add_parser('install-git-hooks', help="install GIT pre-commit hook") |