Skip to content

Commit

Permalink
Further improve kernel install
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Nov 28, 2023
1 parent ceeecfc commit 88f571c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions coconut/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,10 @@ def get_displayable_target(target):

def get_kernel_data_files(argv):
"""Given sys.argv, write the custom kernel file and return data_files."""
if any(arg.startswith("bdist") for arg in argv):
if any(arg.startswith("bdist") or arg.startswith("sdist") for arg in argv):
executable = "python"
elif any(arg.startswith("install") for arg in argv):
executable = sys.executable
else:
executable = "python"
executable = sys.executable
install_custom_kernel(executable)
return [
(
Expand Down

0 comments on commit 88f571c

Please sign in to comment.