mirror of
https://github.com/JackHopkins/factorio-learning-environment.git
synced 2025-09-06 13:23:58 +00:00

Some checks failed
Lint and Format / lint (push) Has been cancelled
* npx prettier * main * final formatting * formatting
1020 B
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:
- Create the package structure
- 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()