Skip to end of banner
Go to start of banner

Building Cryptography package

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Here are a set of steps to build python cryptography package

Pre-requisite

Microsoft Visual Studio 2019 or newer with ARM64 toolchain

Rust compiler for Windows on ARM64

Build OpenSSL

The first step is to build OpenSSL library which is a dependency for cryptography.

  1. Checkout OpenSSL repository

https://github.com/openssl/openssl

2. Configure and compile the library

perl .\Configure VC-WIN64-ARM no-asm --prefix=<location to install> --openssldir=<location for ssl config>

nmake install

3. Add OpenSSL to LIB and PATH environment variable

$env:LIB+=";C:\Users\niysai01\Workspace\openssl_install\release\lib"

$env:INCLUDE+=";C:\Users\niysai01\Workspace\openssl_install\release\includeā€¯

Build Cryptography package

  1. Checkout Cryptography source code

https://github.com/pyca/cryptography

2. Build package

python setup.py install

3. Test

pytest .
  • No labels