PEP518 build in binderhub/Dockerfile
@@ -24,7 +24,7 @@ WORKDIR /tmp/binderhub
# Build the binderhub python library into a wheel and save it to the ./dist
# folder. There are no pycurl wheels so we build our own in the build stage.
-RUN python setup.py bdist_wheel
+RUN python -mpip install build && python -mbuild --wheel .
RUN pip wheel pycurl --wheel-dir ./dist
