Skip to main content

# Brightway2 speedups

A series of function written in [Cython](http://cython.org/) that speed up critical functions to improve the overall performance of the [Brightway2 life cycle assessment framework](https://brightwaylca.org).

In order to avoid having to have Cython as a dependency, this library includes both the pyx and Cython-generated c code, and is distributed as pre-compiled [wheels](https://pypi.python.org/pypi/wheel), except on Linux where access to a C compiler is assumed.

## Building C files

cython -t bw2speedups/_consolidate.pyx bw2speedups/_indexer.pyx bw2speedups/_find_first.pyx

## Building shared libraries

Although you can do this inplace, in my experience it is easier to just install the library in a temporary environment. You don’t want to deal with .so files in the source repository.

## Testing

Install the library into a temporary environment, then manually run the separate test files, i.e. python bw2speedupds/test/test_consolidate.py. This isn’t the most elegant, but it will do for now.

## Building wheels

pip install wheel python setup.py bdist_wheel

Note that this has to be done separately for each OS and environment, i.e. Windows 32-bit and 64-bit versions of Python are separate wheels, even with the same version of Windows.

Release files for bw2speedups 3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bw2speedups 3.1
File Size Uploaded
bw2speedups-3.1.tar.gz 154.5 kB Details

Release files / bw2speedups-3.1.tar.gz

Download URL bw2speedups-3.1.tar.gz
Size 154.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb2adaf0b83355a73de86b88206fca1a1dadad9362918cd739f74a775a79cd74
BLAKE2b-256 checksum
How to use checksums
7f2bc6aa6503c3bde62bf0917b780a91a7e6ecc604968d4c9d64f3c20f5d5f24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

3.1 This release

1 release file

3.0

1 release file

2.4

40 release files

2.3

1 release file

2.2.1

5 release files

2.2

8 release files

2.1

11 release files

2.0

10 release files

1.0

6 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page