Skip to content

Instantly share code, notes, and snippets.

@onslauth
Created October 19, 2017 08:19
Show Gist options
  • Save onslauth/760ff8aa6ab7ab8d7d43ecc379364ee8 to your computer and use it in GitHub Desktop.
Save onslauth/760ff8aa6ab7ab8d7d43ecc379364ee8 to your computer and use it in GitHub Desktop.
pyobjus osx python3.6.1
$ tree /usr/local/lib/python3.6/site-packages/pyobjus
/usr/local/lib/python3.6/site-packages/pyobjus
├── __init__.py
├── __pycache__
│   ├── __init__.cpython-36.pyc
│   ├── debug.cpython-36.pyc
│   ├── dylib_manager.cpython-36.pyc
│   ├── objc_py_types.cpython-36.pyc
│   ├── protocols.cpython-36.pyc
│   └── test.cpython-36.pyc
├── consts
│   ├── __init__.py
│   ├── __pycache__
│   │   ├── __init__.cpython-36.pyc
│   │   └── corebluetooth.cpython-36.pyc
│   └── corebluetooth.py
├── debug.py
├── dylib_manager.py
├── objc_py_types.py
├── protocols.py
├── pyobjus.cpython-36m-darwin.so
└── test.py
3 directories, 17 files
$ python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib.macosx-10.11-x86_64-3.6
creating build/lib.macosx-10.11-x86_64-3.6/pyobjus
copying pyobjus/dylib_manager.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus
copying pyobjus/protocols.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus
copying pyobjus/__init__.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus
copying pyobjus/test.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus
copying pyobjus/objc_py_types.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus
copying pyobjus/debug.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus
creating build/lib.macosx-10.11-x86_64-3.6/pyobjus/consts
copying pyobjus/consts/__init__.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus/consts
copying pyobjus/consts/corebluetooth.py -> build/lib.macosx-10.11-x86_64-3.6/pyobjus/consts
running build_ext
cythoning pyobjus/pyobjus.pyx to pyobjus/pyobjus.c
building 'pyobjus' extension
creating build/temp.macosx-10.11-x86_64-3.6
creating build/temp.macosx-10.11-x86_64-3.6/pyobjus
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c pyobjus/pyobjus.c -o build/temp.macosx-10.11-x86_64-3.6/pyobjus/pyobjus.o
pyobjus/pyobjus.c:4403:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:4395:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_5, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:4726:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:4718:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:4662:140: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:4654:139: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:6119:140: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:6111:139: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_7); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[2]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:13050:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:13042:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:14318:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:14310:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:18517:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:18509:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_4, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:19592:144: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_lin...
^~~~~~~
pyobjus/pyobjus.c:19584:143: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_7, __pyx_t_12); __Pyx_INCREF(__pyx_t_3); __pyx_t_12++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_line...
^~~~~~~
pyobjus/pyobjus.c:22730:140: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:22722:139: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:25241:140: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_9); __Pyx_INCREF(__pyx_t_5); __pyx_t_9++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:25233:139: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_8, __pyx_t_9); __Pyx_INCREF(__pyx_t_5); __pyx_t_9++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[3]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:30789:140: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:30781:139: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_2); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:31833:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:31825:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:31333:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:31325:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_1, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:34287:137: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_14, __pyx_t_9); __Pyx_INCREF(__pyx_t_16); __pyx_t_9++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lin...
^~~~~~~
pyobjus/pyobjus.c:32892:134: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9); __Pyx_INCREF(__pyx_t_1); __pyx_t_9++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:34916:138: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:34908:137: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_linen...
^~~~~~~
pyobjus/pyobjus.c:40308:144: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_12); __Pyx_INCREF(__pyx_t_4); __pyx_t_12++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lin...
^~~~~~~
pyobjus/pyobjus.c:40300:143: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_9, __pyx_t_12); __Pyx_INCREF(__pyx_t_4); __pyx_t_12++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_line...
^~~~~~~
pyobjus/pyobjus.c:39711:140: warning: code will never be executed [-Wunreachable-code]
...= PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_10); __Pyx_INCREF(__pyx_t_4); __pyx_t_10++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lin...
^~~~~~~
pyobjus/pyobjus.c:39703:139: warning: code will never be executed [-Wunreachable-code]
...= PyList_GET_ITEM(__pyx_t_3, __pyx_t_10); __Pyx_INCREF(__pyx_t_4); __pyx_t_10++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_line...
^~~~~~~
pyobjus/pyobjus.c:52391:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
^
pyobjus/pyobjus.c:49351:28: warning: unused function '__Pyx_CyFunction_InitDefaults' [-Wunused-function]
static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) {
^
pyobjus/pyobjus.c:49360:27: warning: unused function '__Pyx_CyFunction_SetDefaultsTuple' [-Wunused-function]
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
^
pyobjus/pyobjus.c:49365:27: warning: unused function '__Pyx_CyFunction_SetDefaultsKwDict' [-Wunused-function]
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
^
pyobjus/pyobjus.c:49370:27: warning: unused function '__Pyx_CyFunction_SetAnnotationsDict' [-Wunused-function]
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
^
39 warnings generated.
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.11-x86_64-3.6/pyobjus/pyobjus.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lffi -o build/lib.macosx-10.11-x86_64-3.6/pyobjus/pyobjus.cpython-36m-darwin.so
running install_lib
creating /usr/local/lib/python3.6/site-packages/pyobjus
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/pyobjus.cpython-36m-darwin.so -> /usr/local/lib/python3.6/site-packages/pyobjus
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/dylib_manager.py -> /usr/local/lib/python3.6/site-packages/pyobjus
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/protocols.py -> /usr/local/lib/python3.6/site-packages/pyobjus
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/__init__.py -> /usr/local/lib/python3.6/site-packages/pyobjus
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/test.py -> /usr/local/lib/python3.6/site-packages/pyobjus
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/objc_py_types.py -> /usr/local/lib/python3.6/site-packages/pyobjus
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/debug.py -> /usr/local/lib/python3.6/site-packages/pyobjus
creating /usr/local/lib/python3.6/site-packages/pyobjus/consts
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/consts/__init__.py -> /usr/local/lib/python3.6/site-packages/pyobjus/consts
copying build/lib.macosx-10.11-x86_64-3.6/pyobjus/consts/corebluetooth.py -> /usr/local/lib/python3.6/site-packages/pyobjus/consts
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/dylib_manager.py to dylib_manager.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/protocols.py to protocols.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/__init__.py to __init__.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/test.py to test.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/objc_py_types.py to objc_py_types.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/debug.py to debug.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/consts/__init__.py to __init__.cpython-36.pyc
byte-compiling /usr/local/lib/python3.6/site-packages/pyobjus/consts/corebluetooth.py to corebluetooth.cpython-36.pyc
running install_egg_info
Writing /usr/local/lib/python3.6/site-packages/pyobjus-1.0-py3.6.egg-info
$ python3
Python 3.6.1 (default, Mar 23 2017, 16:49:01)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyobjus import autoclass
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'autoclass'
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment