Closed jma7 closed 6 years ago
pipenv
pipenv --python 2.7
to use system python 2.7pipenv shell
to start a shell with python 2.7git clone https://github.com/vatlab/VariantTools.git vtools
brew install swig
to install swig (mac only)python setup.py install
, got errorcc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -DMODULE_NAME="vt_sqlite3" -DHAVE_USLEEP -Isqlite -Isqlite/py3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c sqlite/sqlite3.c -o build/temp.macosx-10.13-intel-2.7/sqlite/sqlite3.o -w
sqlite/py3/row.c:169:8: error: unknown type name 'Py_hash_t'
static Py_hash_t pysqlite_row_hash(pysqlite_Row *self)
because the wrong version of sqlite
is used (note the py3
subfolder).
I can confirm that I have made the master branch python 3 only before we fork to v3 (https://github.com/vatlab/VariantTools/commit/7755a51204204d3628cee55dabe07f74c89cf07a). It is strange that that I could not find a python2.7 branch though.
So the right way to get the python2.7 version is to install it with pip.
Any suggestions? In the setup.py file, why
SQLITE_FOLDER = 'sqlite/py3'
? @BoPeng