Skip to content

Commit e56fa93

Browse files
authored
chore: terminal toolkit venv setting using symlinks=True (#3655)
1 parent 39c083b commit e56fa93

File tree

6 files changed

+236
-715
lines changed

6 files changed

+236
-715
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: What version of camel are you using?
2828
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
29-
placeholder: E.g., 0.2.83a0
29+
placeholder: E.g., 0.2.83a1
3030
validations:
3131
required: true
3232

camel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from camel.logger import disable_logging, enable_logging, set_log_level
1616

17-
__version__ = '0.2.83a0'
17+
__version__ = '0.2.83a1'
1818

1919
__all__ = [
2020
'__version__',

camel/toolkits/terminal_toolkit/utils.py

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,22 @@ def setup_initial_env_with_venv(
357357
r"""Set up initial environment using standard venv."""
358358
try:
359359
# Create virtual environment with system Python
360-
venv.create(
361-
env_path, with_pip=True, system_site_packages=False, symlinks=False
362-
)
360+
try:
361+
venv.create(
362+
env_path,
363+
with_pip=True,
364+
system_site_packages=False,
365+
symlinks=True,
366+
)
367+
except Exception:
368+
# Fallback to symlinks=False if symlinks=True fails
369+
# (e.g., on some Windows configurations)
370+
venv.create(
371+
env_path,
372+
with_pip=True,
373+
system_site_packages=False,
374+
symlinks=False,
375+
)
363376

364377
# Get pip path
365378
if platform.system() == 'Windows':
@@ -526,8 +539,11 @@ def clone_current_environment(
526539
update_callback(
527540
"Falling back to standard venv for cloning environment\n"
528541
)
529-
530-
venv.create(env_path, with_pip=True, symlinks=False)
542+
try:
543+
venv.create(env_path, with_pip=True, symlinks=True)
544+
except Exception:
545+
# Fallback to symlinks=False if symlinks=True fails
546+
venv.create(env_path, with_pip=True, symlinks=False)
531547

532548
# Get python/pip path
533549
if platform.system() == 'Windows':

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
project = 'CAMEL'
2828
copyright = '2024, CAMEL-AI.org'
2929
author = 'CAMEL-AI.org'
30-
release = '0.2.83a0'
30+
release = '0.2.83a1'
3131

3232
html_favicon = (
3333
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "camel-ai"
7-
version = "0.2.83a0"
7+
version = "0.2.83a1"
88
description = "Communicative Agents for AI Society Study"
99
authors = [{ name = "CAMEL-AI.org" }]
1010
requires-python = ">=3.10,<3.15"

0 commit comments

Comments
 (0)