zerodha / pykiteconnect

The official Python client library for the Kite Connect trading APIs
MIT License
981 stars 469 forks source link

Disabling bdist_wheel may stop working in a future version of pip #94

Closed mhsmith closed 3 years ago

mhsmith commented 3 years ago

With pip 20.2.4, I get the following warning:

Building wheels for collected packages: kiteconnect
  Building wheel for kiteconnect (setup.py) ... done
  WARNING: Legacy build of wheel for 'kiteconnect' created no files.
  Command arguments: /home/smith/.virtualenvs/tmp/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wktwmwii/kiteconnect/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wktwmwii/kiteconnect/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-lmn22loz
  Command output: [use --verbose to show]
  Running setup.py clean for kiteconnect
Failed to build kiteconnect
Installing collected packages: certifi, chardet, urllib3, idna, requests, six, pycparser, cffi, cryptography, pyOpenSSL, enum34, python-dateutil, txaio, attrs, zope.interface, Automat, constantly, hyperlink, incremental, PyHamcrest, twisted, autobahn, kiteconnect
    Running setup.py install for kiteconnect ... done
  DEPRECATION: kiteconnect was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.

See https://github.com/pypa/pip/issues/8368 for details.

vividvilla commented 3 years ago

This should have been fixed on kiteconnect>=3.9.0. You can try doing

pip install --upgrade kiteconnect