You need to clone recursive so that you will get the siwg interface files as a submodule.
$ git clone --recursive https://github.com/tpm2-software/tpm2-pytss
Install black
version 19.10b0
$ pip install -U black==19.10b0
From the root of the repo
$ black .
$ python3 setup.py test
$ rm -rf build
$ git clean -Xf || true
$ docker build -t tpm2software/tpm2-tss-python -f .ci/Dockerfile.tpm2-tss-python .
$ docker run --rm \
-u $(id -u):$(id -g) \
-v "${PWD}:/workspace/tpm2-pytss" \
--env-file .ci/docker.env \
tpm2software/tpm2-tss-python \
/bin/bash -c '/workspace/tpm2-pytss/.ci/docker.run'
-
SIM_RUNNING
- If set to anything this tells
util.simulator
that you want it to use the simulator that's already running instead of trying to start a new one.
- If set to anything this tells
-
PYESYS_TCTI
- Default:
mssim
- Set this to the name of the TCTI you want to use. For example
device
,mssim
,tabrmd
.
- Default:
-
PYESYS_TCTI_CONFIG
- Default:
None
- Set this to the config string to be passed to the init function of the TCTI.
- Default: