Skip to content

Commit a52ab7a

Browse files
Identify abi of deps wheels
Identify Python version to extract abi of wheels which helps us in filtering the required deps. Signed-off-by: Abhishek Kumar <abhishek.kasyap09@gmail.com>
1 parent 0308787 commit a52ab7a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

etc/scripts/freeze_and_update_reqs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
import shutil
3737
import sys
3838

39+
python_version = str(sys.version_info[0]) + str(sys.version_info[1])
40+
py_abi = "{0}cp{1}{0}".format("*", python_version)
41+
3942

4043
def generate_req_text(input_dir, output_file=False, package_name=False):
4144
"""
@@ -47,7 +50,7 @@ def generate_req_text(input_dir, output_file=False, package_name=False):
4750
files
4851
for files in thirdparty
4952
if fnmatch.fnmatchcase(files, "*py3*")
50-
or fnmatch.fnmatchcase(files, "*cp36*")
53+
or fnmatch.fnmatchcase(files, py_abi)
5154
or (
5255
fnmatch.fnmatchcase(files, "*tar.gz*")
5356
and not fnmatch.fnmatchcase(files, "*py2-ipaddress-3.4.1.tar.gz*")

0 commit comments

Comments
 (0)