-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error with python3.7 on mac #36
Comments
@amol- I think it might be a good idea to add macOS builds to Travis CI matrix.. |
@HughesLou what was the last one not failing? |
I don't think it's related to changes to the codebase.
Probably something to do with the OS configuration or version. |
Wrong compile time dependency? |
Still, having this in CI won't hurt. |
I'm not against it, just didn't have time to :D |
Leave it to me. I've got some good experience with various CI stuff :) |
I haven't installed dukpy with any previous Python version. it's the first time on my Mac with Python 3.7 |
OS version is 10.13 running install |
@webknjaz Are you still willing to experiment on this? I noticed there were a bunch of reports for people having problems installing dukpy on OSX. Even though I develop on OSX and thus I can confirm it works fine in a properly set environment, I'd say that it would be great to get rid of the problems those users are facing. |
The last part in the puzzle is to ship wheels for macOS users: https://github.com/amol-/dukpy/pull/40#issuecomment-461389162 |
closing as we now provide wheels for OSX |
@amol- in fact, only tests run on macOS, jobs for publishing the wheels were never added and so they are not published to PyPI: https://pypi.org/project/dukpy/0.2.3/#files. |
oh you are right! I don't know why I was sure it was done. |
I think I wanted to do this but never found the time. |
FTR I now have a state-of-the-art GitHub Actions workflow that implements build->test->publish stages with testing exactly the same artifacts that are being uploaded later: https://github.com/ansible/pylibssh/blob/devel/.github/workflows/build-test-n-publish.yml. |
@webknjaz have you ever tried https://github.com/joerick/cibuildwheel ? |
I've been meaning to try it out for a while but haven't had time. Also, my case is a bit more complicated than that anyway. In fact, I've participated in the review of one of their recent PRs where they've debated whether they should use my GHA in their example: https://github.com/joerick/cibuildwheel/pull/362/files#diff-b4971e357cad581b8716b72ee38f58a5R77-R81. |
Wheels for macOS would be very great indeed 👍 :) |
FWIW with Travis bailing on FOSS it's recommended to migrate to GHA that would also unify the build workflows |
Wheels for OSX are now provided at release time, see https://github.com/amol-/dukpy/releases/tag/wheels-test |
I'm hearing that Macstadium can give a free VM for FOSS, wonder if it's hard to plug it into GHA... |
hi, when I try to insall dukpy with latest version 0.2.2 (or 0.2.1, 0.2.0) on mac, some error messages occur.
Mac: RELEASE_X86_64 x86_64
Python: 3.7
pip3: 18.0
when run command:
pip3 install dukpy
error messages:
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DDUK_OPT_DEEP_C_STACK=1 -DDUK_OPT_NONSTD_REGEXP_DOLLAR_ESCAPE=1 -DDUK_OPT_OCTAL_SUPPORT=1 -I./src/duktape -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/duktape/duktape.c -o build/temp.macosx-10.13-x86_64-3.7/src/duktape/duktape.o
duk_bi_date_unix.c:53:15: error: array has incomplete element type 'struct tm'
struct tm tms[2];
^
duk_bi_date_unix.c:53:9: note: forward declaration of 'struct tm'
struct tm tms[2];
^
duk_bi_date_unix.c:134:28: error: invalid application of 'sizeof' to an incomplete type 'struct tm'
DUK_MEMZERO((void *) tms, sizeof(struct tm) * 2);
^ ~~~~~~~~~~~
./src/duktape/duk_config.h:1965:46: note: expanded from macro 'DUK_MEMZERO'
#define DUK_MEMZERO(p,n) DUK_MEMSET((p), 0, (n))
^
/usr/include/secure/_string.h:76:33: note: expanded from macro 'memset'
__builtin___memset_chk (dest, VA_ARGS, __darwin_obsz0 (dest))
^~~~~~~~~~~
duk_bi_date_unix.c:53:9: note: forward declaration of 'struct tm'
struct tm tms[2];
...
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/x0/y4wx_dy95cg6kshhsnnvlhkr0000gn/T/pip-install-nemfkg94/dukpy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/x0/y4wx_dy95cg6kshhsnnvlhkr0000gn/T/pip-record-afo8rlwm/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/x0/y4wx_dy95cg6kshhsnnvlhkr0000gn/T/pip-install-nemfkg94/dukpy/
The text was updated successfully, but these errors were encountered: