adafruit / Adafruit_CircuitPython_LTR390

CircuitPython library for the LTR390 ambient light and UV sensor
MIT License
7 stars 2 forks source link

setup.py #10

Closed Bra1nsen closed 2 years ago

Bra1nsen commented 2 years ago

after: sudo python setup.py install

/usr/local/lib/python3.7/dist-packages/setuptools_scm/integration.py:38: RuntimeWarning: ERROR: setuptools==40.8.0 is used in combination with setuptools_scm>=6.x

Your build configuration is incomplete and previously worked by accident!

This happens as setuptools is unable to replace itself when a activated build dependency requires a more recent setuptools version (it does not respect "setuptools>X" in setup_requires).

setuptools>=31 is required for setup.cfg metadata support setuptools>=42 is required for pyproject.toml configuration support

Suggested workarounds if applicable:

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

do i have to edit the setup.py file ? What iam missing here?

Bra1nsen commented 2 years ago

ah okay fixed it with: python -m pip install pyproject.toml that was new for me!