Files
kiankyars d3dd325792
Some checks failed
Lint and Format / lint (push) Has been cancelled
npx prettier (#285)
* npx prettier

* main

* final formatting

* formatting
2025-08-18 16:43:34 +03:00

1020 B

Building the factorio_learning_environment Package

This document explains how to build and install the Factorio Learning Environment package.

Building the Package

uv build

This will:

  1. Create the package structure
  2. Build a wheel (.whl) in the dist/ directory

Installing from the Wheel

pip install dist/factorio_learning_environment-*.whl

Verifying the Installation

To verify that the installation was successful:

# Create a test environment
mkdir -p test_install && cd test_install
python -m venv test_env
source test_env/bin/activate

# Install the wheel
pip install ../dist/factorio_learning_environment-*.whl

# Verify installation
python -c "import factorio_learning_environment; print(factorio_learning_environment.__file__)"

Using the Package

After installation, import the package in your code:

# Import the main package
import fle

# Import specific components
from fle import env

# Access modules
env_instance = env.Instance()