Skip to content

ugai/pyalembic-windows-buildscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAlembic Build Script for Windows

This script builds Alembic and its Python bindings for Windows.

Prerequisites

To use this script, you need to have the following software installed on your Windows machine:

  • Visual Studio (MSVC)
  • CMake
  • Python3
  • Git

Build

To build PyAlembic, follow these steps:

  1. Clone this repository to your local machine.

  2. Open a PowerShell terminal and navigate to the repository folder.

  3. Run the build.ps1 script with the -PythonRoot option, specifying the path to your Python installation. For example:

    PS C:\builds\pyalembic-windows-buildscript> .\build.ps1 -PythonRoot "C:\Program Files\Python314" | Tee-Object build.log

A .whl file will be output to the dist directory.

Pre-built Wheels

Pre-built wheels are available on the Releases page.

Note

These wheels support the Ogawa format only. HDF5-based .abc files (created by older software) are not supported.

Note

The wheels bundle third-party libraries (Alembic, Imath, Boost) under their respective licenses, which differ from the CC0 license of this repository.

Usage

To use PyAlembic module in your Python scripts, import the alembic module. For example:

import alembic

# Print a version
print(alembic.Abc.GetLibraryVersion())

# Create an .abc file
arch = alembic.Abc.OArchive("hoge.abc")
assert os.path.exists("hoge.abc")

For more information on how to use PyAlembic, please refer to the official documentation.

License

This project is licensed under the CC0 license.

About

Build script for Alembic and its Python bindings for Windows

Topics

Resources

License

Stars

Watchers

Forks

Contributors