robotpy / robotpy-cross-docker

Docker image used for compiling RobotPy for RoboRIO
1 stars 1 forks source link

Build python from source. #1

Closed DirtyJerz closed 4 years ago

DirtyJerz commented 4 years ago

x86_64 and arm-frc2020-linux-gnueabi

virtuald commented 4 years ago

I know I said to test with pip wheel, but that's not actually what I meant. On CI we would have the source and do python setup.py bdist_wheel, or have a tarball sdist and do pip wheel on that directly, not installing from pypi. I get the following error:

      File "setup.py", line 4, in <module>
        setup()
      File "/build/venv/build/lib/python3.8/site-packages/robotpy_build/setup.py", line 141, in setup
        s.prepare()
      File "/build/venv/build/lib/python3.8/site-packages/robotpy_build/setup.py", line 88, in prepare
        self.setup_kwargs["version"] = get_version(
      File "/build/venv/build/lib/python3.8/site-packages/setuptools_scm/__init__.py", line 150, in get_version
        parsed_version = _do_parse(config)
      File "/build/venv/build/lib/python3.8/site-packages/setuptools_scm/__init__.py", line 105, in _do_parse
        raise LookupError(
    LookupError: setuptools-scm was unable to detect version for '/tmp/pip-req-build-1ltq0lq8'.

Any idea?

auscompgeek commented 4 years ago

Maybe in robotpy-build we should let setuptools call setuptools-scm instead of doing it ourselves. I dunno.

virtuald commented 4 years ago

Thank you!