|
From: ALIX L. <al...@la...> - 2019-07-10 07:58:32
|
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 > |