Project

General

Profile

Actions

Numextension » History » Revision 1

Revision 1/11 | Next »
Jim Pulokas, 11/29/2020 03:13 PM


Numextension

Numextension is a Python module containing a set of functions Leginon needs to operate on Numpy arrays. Since it is implemented in C rather than in pure Python, the module must be compliled before using. You can avoid compiling yourself by using one of the provided Windows installers for commonly used versions of Python and Numpy. For non-standard or newer versions of Python/Numpy, use the instructions below for doing your own compile.

Pre-compiled Windows Installers

  • add here...

Compiling Numextension on Windows

Install Build Tools

Windows versions of Python and Numpy are developed using Microsoft Visual Studio. Extension modules written in C should also be compiled with VS. Luckily you do not have to install a full version of Visual Studio. Compiling a Python extension only requires a minimal set of command line build tools. These tools are documented here:

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-160

and can be downloaded from here:

https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019

Install Python and Numpy you want to compile numextension for

Use the standard Windows installer to install your Python version, then use pip to install numpy/scipy.

This is a work-in-progress, please stand by...

Updated by Jim Pulokas almost 4 years ago · 1 revisions