Skip to content

Commit

Permalink
[PyPI] Add extra directories for JVM/iOS build (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
junrushao authored and tqchen committed May 25, 2023
1 parent 926f1a9 commit 18fcc55
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
# pylint: disable=invalid-name, exec-used
"""Setup TVM package."""
import os
import pathlib
import platform
import shutil
import sys
import sysconfig
import pathlib
import platform

from setuptools import find_packages
from setuptools.dist import Distribution
Expand Down Expand Up @@ -77,6 +77,21 @@ def get_lib_path():
libs.append(candidate_path)
break

# Add 3rdparty configuration json files
for name in lib_path:
candidate_path = os.path.abspath(
os.path.join(os.path.dirname(name), "..", "..", "3rdparty")
)
if os.path.isdir(candidate_path):
libs.append(candidate_path)
break

# Add jvm configuration json files
for name in lib_path:
candidate_path = os.path.abspath(os.path.join(os.path.dirname(name), "..", "..", "jvm"))
if os.path.isdir(candidate_path):
libs.append(candidate_path)
break
else:
libs = None

Expand Down

0 comments on commit 18fcc55

Please sign in to comment.