{"action":"closed","issue":{"url":"https://api.github.com/repos/coleifer/sqlite-vtfunc/issues/2","repository_url":"https://api.github.com/repos/coleifer/sqlite-vtfunc","labels_url":"https://api.github.com/repos/coleifer/sqlite-vtfunc/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/coleifer/sqlite-vtfunc/issues/2/comments","events_url":"https://api.github.com/repos/coleifer/sqlite-vtfunc/issues/2/events","html_url":"https://github.com/coleifer/sqlite-vtfunc/issues/2","id":326216678,"number":2,"title":"vtfunc.c is missing so setup.py install fails","user":{"login":"simonw","id":9599,"avatar_url":"https://avatars0.githubusercontent.com/u/9599?v=4","gravatar_id":"","url":"https://api.github.com/users/simonw","html_url":"https://github.com/simonw","followers_url":"https://api.github.com/users/simonw/followers","following_url":"https://api.github.com/users/simonw/following{/other_user}","gists_url":"https://api.github.com/users/simonw/gists{/gist_id}","starred_url":"https://api.github.com/users/simonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonw/subscriptions","organizations_url":"https://api.github.com/users/simonw/orgs","repos_url":"https://api.github.com/users/simonw/repos","events_url":"https://api.github.com/users/simonw/events{/privacy}","received_events_url":"https://api.github.com/users/simonw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-24T17:21:46Z","updated_at":"2018-05-24T19:05:38Z","closed_at":"2018-05-24T19:05:37Z","author_association":"NONE","body":"b22cf793405f2bd68b0bf95dd5e781f146fa0161 deleted `vtfunc.c` - was this a mistake?\r\n\r\nI couldn't run `python setup.py install` without it. I downloaded a copy of `vtfunc.c` manually and ran `python setup.py install` again and it worked just fine. Here's the full transcript of my successful installation process:\r\n\r\n```\r\n$ python3 -mvenv vtfunc-demo\r\n$ source vtfunc-demo/bin/activate\r\n(vtfunc-demo) tmp $ cd vtfunc-demo/\r\n(vtfunc-demo) vtfunc-demo $ wget https://github.com/coleifer/sqlite-vtfunc/archive/master.zip\r\n(vtfunc-demo) vtfunc-demo $ unzip master.zip \r\n(vtfunc-demo) vtfunc-demo $ cd sqlite-vtfunc-master/\r\n(vtfunc-demo) sqlite-vtfunc-master $ wget https://raw.githubusercontent.com/coleifer/sqlite-vtfunc/5e4a0fcad386ce4b194654e3f02b3d92873f9cef/vtfunc.c\r\n(vtfunc-demo) sqlite-vtfunc-master $ python setup.py install\r\nsetup.py:10: UserWarning: Cython not installed, using pre-generated C source file.\r\n  warnings.warn('Cython not installed, using pre-generated C source file.')\r\n/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'setup_requires'\r\n  warnings.warn(msg)\r\n/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'dependency_links'\r\n  warnings.warn(msg)\r\nrunning install\r\nrunning build\r\nrunning build_ext\r\nbuilding 'vtfunc' extension\r\ncreating build\r\ncreating build/temp.macosx-10.13-x86_64-3.6\r\nclang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DMODULE_NAME=\"vtfunc\" -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/private/tmp/vtfunc-demo/include -I/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c vtfunc.c -o build/temp.macosx-10.13-x86_64-3.6/vtfunc.o\r\nvtfunc.c:3898:25: warning: incompatible pointer types assigning to 'struct __pyx_t_6vtfunc_sqlite3_index_constraint *' from 'struct sqlite3_index_constraint *'\r\n      [-Wincompatible-pointer-types]\r\n    __pyx_v_pConstraint = (&(__pyx_v_pIdxInfo->aConstraint[__pyx_v_i]));\r\n                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nvtfunc.c:4402:33: warning: incompatible pointer types assigning to 'int (*)(sqlite3 *, void *, int, const char *const *, sqlite3_vtab **, char **)' (aka 'int\r\n      (*)(struct sqlite3 *, void *, int, const char *const *, struct sqlite3_vtab **, char **)') from\r\n      'int (sqlite3 *, void *, int, char **, sqlite3_vtab **, char **)' (aka 'int (struct sqlite3 *, void *, int, char **, struct sqlite3_vtab **, char **)')\r\n      [-Wincompatible-pointer-types]\r\n  __pyx_v_self->module.xConnect = __pyx_f_6vtfunc_pwConnect;\r\n                                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~\r\nvtfunc.c:5486:79: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]\r\n  sqlite3_busy_handler(__pyx_v_db, __pyx_f_6vtfunc__aggressive_busy_handler, ((void *)__pyx_v_n));\r\n                                                                              ^\r\n3 warnings generated.\r\ncreating build/lib.macosx-10.13-x86_64-3.6\r\nclang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.6/vtfunc.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lsqlite3 -o build/lib.macosx-10.13-x86_64-3.6/vtfunc.cpython-36m-darwin.so\r\nrunning install_lib\r\ncopying build/lib.macosx-10.13-x86_64-3.6/vtfunc.cpython-36m-darwin.so -> /private/tmp/vtfunc-demo/lib/python3.6/site-packages\r\nrunning install_egg_info\r\nWriting /private/tmp/vtfunc-demo/lib/python3.6/site-packages/vtfunc-0.3.2-py3.6.egg-info\r\n(vtfunc-demo) sqlite-vtfunc-master $ python\r\nPython 3.6.5 (default, Mar 30 2018, 06:41:53) \r\n[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import vtfunc\r\n>>> vtfunc\r\n<module 'vtfunc' from '/private/tmp/vtfunc-demo/lib/python3.6/site-packages/vtfunc.cpython-36m-darwin.so'>\r\n>>> \r\n```"}}
{"actor":{"display_login":"simonw"}}