CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-nodeenv

tessl install tessl/pypi-nodeenv@1.9.0

Node.js virtual environment builder for creating isolated Node.js environments

Agent Success

Agent success rate when using this tile

80%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.25x

Baseline

Agent success rate without this tile

64%

task.mdevals/scenario-2/

Node.js Environment Builder with Source Compilation

A tool that creates an isolated Node.js environment from source code with custom compilation options.

Capabilities

Source Code Compilation Setup

Compiles Node.js from source code with configurable build options for Unix-based systems.

  • Given a target directory "test_env" and node version "18.0.0", creates an environment by compiling from source @test
  • Given compilation options to disable SSL (without_ssl=True) and enable debug mode (debug=True), compiles Node.js with these custom flags @test

Parallel Compilation Control

Manages parallel build processes to optimize compilation time.

  • Given a jobs parameter of 4, configures make to run with 4 parallel jobs during compilation @test
  • Given no jobs parameter specified, defaults to 2 parallel jobs for compilation @test

Implementation

@generates

API

def create_node_environment(env_dir, node_version, prebuilt=True, without_ssl=False, debug=False, profile=False, jobs=2, make_path='make'):
    """
    Creates a Node.js virtual environment.

    Args:
        env_dir: Target directory for the environment
        node_version: Node.js version to install
        prebuilt: If True, uses prebuilt binaries; if False, compiles from source
        without_ssl: Build without SSL support (source only)
        debug: Build with debugging symbols (source only)
        profile: Enable profiling support (source only)
        jobs: Number of parallel make jobs (source only, default: 2)
        make_path: Path to make command (default: 'make')

    Returns:
        Path to created environment
    """
    pass

Dependencies { .dependencies }

nodeenv { .dependency }

Provides Node.js virtual environment creation with source compilation support.

@satisfied-by

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/nodeenv@1.9.x
tile.json