-
Notifications
You must be signed in to change notification settings - Fork 4
/
BUILDING.txt
31 lines (26 loc) · 954 Bytes
/
BUILDING.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
install check-manifest
then check-manifest
pip install flake8
- checking formatting
flake8 setup.py src |cat -n
- fixing them
autopep8 --in-place --recursive --max-line-length=100 src *.py -v -a
# following can help removing unused imports
autoflake --remove-all-unused-imports --remove-all-unused-imports --in-place -r .
then try
flake8 src *.py
isort errors:
isort --check-only --diff --recursive src *.py service/*.py
fixing isort errors:
isort <filename>
isort *.py src -rc -v
######
pytest segfaulting try instaling
pytest-faulthandler
# Numpy errors in frozen versions
Usually it is to do with cx_freeze failing to pick up correct mkl files.
in python installation check the file mkl-<version>.json for a list of files.
Then check including missing files one by one.
# cx_freeze
set QT_QPA_PLATFORM_PLUGIN_PATH=C:\python\WinPython-64bit-3.4.4.2Qt5\python-3.4.4.amd64\Lib\site-packages\PyQt5\plugins\platforms
python freeze.py