Skip to content

Need help understanding .travis.yml #33

@wangkuiyi

Description

@wangkuiyi

I see that in our .travis.yml file, we have

- python setup.py -q install

I tried to run it in a Docker container with Python 3.7 and Go 1.12 compiler installed. However, it fails with the following error messages.

root@5b1d7a99e130:/work/python# python setup.py -q install
$ GOPATH=/tmp/tmp0933ggqq go get -d
/tmp/ccx6kWHo.o: In function `main':
test.c:(.text+0xa): undefined reference to `f'
collect2: error: ld returned 1 exit status
$ CGO_CFLAGS=-I/usr/local/include/python3.7m CGO_LDFLAGS=-Wl,--unresolved-symbols=ignore-all GOPATH=/tmp/tmp0933ggqq go build -buildmode=c-shared -o /work/python/build/lib.linux-x86_64-3.7/recordio/librecordio.cpython-37m-x86_64-linux-gnu.so
zip_safe flag not set; analyzing archive contents...
recordio.__pycache__.librecordio.cpython-37: module references __file__
recordio.__pycache__.recordio.cpython-37: module references __file__

May I know what is the purpose of the command python setup.py -q install? Why does it run in Travis CI but not in my container? How am I supposed to make it running in my container?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions