File: install_wheel.py

package info (click to toggle)
gensim 4.2.0%2Bdfsg-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,396 kB
  • sloc: python: 26,427; sh: 108; cpp: 37; ansic: 26; makefile: 12
file content (17 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Install the built wheel for testing under AppVeyor.

Assumes that gensim/dist contains a single wheel to install.
"""
import os
import subprocess

curr_dir = os.path.dirname(__file__)
dist_path = os.path.join(curr_dir, '..', 'dist')
wheels = [
    os.path.join(dist_path, f)
    for f in os.listdir(dist_path) if f.endswith('.whl')
]
assert len(wheels) == 1, "wheels = %r" % wheels

command = 'pip install --pre --force-reinstall'.split() + [wheels[0]]
subprocess.check_call(command)