Skip to content

Commit

Permalink
Merge branch 'main' into add-open-d-tutor
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Aug 1, 2024
2 parents 5d471de + f072f44 commit 0d399d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opendevin/runtime/plugins/agent_skills/agentskills.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import os
import re
import shutil
import sys
import tempfile
from inspect import signature
from typing import Optional
Expand Down Expand Up @@ -89,7 +90,8 @@ def wrapper(*args, **kwargs):
print(
f'DEBUGGING Environment variables: {json.dumps(dict(os.environ), indent=2)}'
)
print(f'DEBUGGING User ID: {os.getuid()}, Group ID: {os.getgid()}')
if sys.platform != 'win32':
print(f'DEBUGGING User ID: {os.getuid()}, Group ID: {os.getgid()}')

out = subprocess.run(['pwd'], capture_output=True)
old_pwd = out.stdout.decode('utf-8').strip()
Expand Down
2 changes: 2 additions & 0 deletions opendevin/runtime/utils/runtime_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def _create_project_source_dist():
project_root = os.path.dirname(os.path.dirname(os.path.abspath(opendevin.__file__)))
logger.info(f'Using project root: {project_root}')

# install build package
subprocess.run(['python', '-m', 'pip', 'install', 'build'])
# run "python -m build -s" on project_root
result = subprocess.run(['python', '-m', 'build', '-s', project_root])
if result.returncode != 0:
Expand Down

0 comments on commit 0d399d6

Please sign in to comment.