|
From: ALIX L. <al...@la...> - 2019-07-10 08:39:19
|
Hi Achilleas, I had a quick look over another file on Luigi's repository : https://github.com/lballabio/dockerfiles/blob/master/quantlib-python3/Dockerfile I am not familiar with Docker, but he seems to execute in line 19 the command that does not work for you. I suspect the below added lines to install the wheel package: > RUN wget https://bootstrap.pypa.io/get-pip.py \ > && python3 get-pip.py \ > && rm get-pip.py Alix Le mer. 10 juil. 2019 à 10:02, Achilleas Michos <mic...@gm...> a écrit : > Hi Alix, > > Thanks for coming back! Yes, on my machine it is installed and building > the wheels works fine. > I'm trying to do the same using the script that Travis runs for > Quantlib-SWIG. That script is run inside > the lballabio/quantlib-swig-devenv:python3 docker image. > Does this mean that the images does not have wheel installed? i.e. if I > want to build wheels I have to make my own custom image to run on my CI? > > > On Wed, Jul 10, 2019 at 9:58 AM ALIX LASSAUZET <al...@la...> wrote: > >> Hi Achilleas, >> >> Have you installed the wheel package on your machine (orin the virtual >> env) first? >> > pip install wheel >> >> Alix >> >> Le mer. 10 juil. 2019 à 09:54, Achilleas Michos < >> mic...@gm...> a écrit : >> >>> Hi! >>> >>> I'm trying to expose in Python features of the QuantLib that are not yet >>> in the Quantlib-SWIG. >>> For that I've forked the later and I've done my changes. Now I need to >>> compile a python wheel and provide it as a pip install-able package, to use >>> in my project. >>> I want, pretty much, to replicate the process that creates >>> the QuantLib-Python deliveries in PyPI. >>> >>> I've noticed that the Quantlib-SWIG has a CI configuration setup for >>> testing, though not for building wheels for PyPi. The build/test script >>> looks like this: >>> >>> ./autogen.sh \ >>> && ./configure PYTHON=/usr/bin/python3 CXXFLAGS='-O1' \ >>> && make -C Python \ >>> && make -C Python check \ >>> && make -C Python install \ >>> && for i in Python/examples/*.py ; do echo $i && /usr/bin/python3 $i || >>> break -1 ; done >>> >>> I added the following commands at the end: >>> >>> && cd Python && /usr/bin/python3 setup.py bdist_wheel >>> >>> Aiming to recover the .whl in the travis worker and publish it. >>> Unfortunately, the command gives me the following error even though the >>> same works as expected on my machine (Ubuntu 18.04). >>> >>> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] >>> or: setup.py --help [cmd1 cmd2 ...] >>> or: setup.py --help-commands >>> or: setup.py cmd --help >>> >>> error: invalid command 'bdist_wheel' >>> >>> Could someone help me figure out why in the docker container the command >>> is not recognized but it is on my machine? >>> By the way, how are the wheels posted on PyPi get generated? Is it >>> manually or there is a CI process? >>> >>> Kind regards, >>> Achilleas >>> >>> >>> _______________________________________________ >>> QuantLib-dev mailing list >>> Qua...@li... >>> https://lists.sourceforge.net/lists/listinfo/quantlib-dev >>> >> |