Skip to content

Commit

Permalink
chore: Update pip installation command to use sys.executable
Browse files Browse the repository at this point in the history
  • Loading branch information
unclecode committed May 16, 2024
1 parent 7e0682e commit 4006f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
import subprocess
import sys

class InstallCommand(_install):
def run(self):
Expand All @@ -13,7 +14,7 @@ def manual_dependencies_install(self):
with open('requirements.txt') as f:
dependencies = f.read().splitlines()
for dependency in dependencies:
subprocess.check_call([self.executable, '-m', 'pip', 'install', dependency])
subprocess.check_call([sys.executable, '-m', 'pip', 'install', dependency])

setup(
name="Crawl4AI",
Expand Down

0 comments on commit 4006f5f

Please sign in to comment.