Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editable builds #783

Closed
aaraney opened this issue Jun 13, 2024 · 1 comment · Fixed by #804
Closed

Editable builds #783

aaraney opened this issue Jun 13, 2024 · 1 comment · Fixed by #804

Comments

@aaraney
Copy link
Member

aaraney commented Jun 13, 2024

Certain combinations of pip and setuptools versions cause editable t-route builds to fail. This only affects troute.network and troute.routing packages. t-route packages are built in editable mode by default when using compiler.sh. Specify no-e as an argument to compiler.sh to change this behavior.

setuptools==64.0.0 changed the behavior of editable builds. Workarounds:

  • Install setuptools<64. Editable builds should work as expected.
  • Install troute.network and troute.routing using:
    cd src/troute-network
    python setup.py build_ext --inplace --use-cython
    # note: requires pip>=22.1
    pip install --no-build-isolation -e . --config-settings editable_mode=compat
    cd -
    
    cd src/troute-routing
    python setup.py build_ext --inplace --use-cython
    # note: requires pip>=22.1
    pip install --no-build-isolation -e . --config-settings editable_mode=compat
    cd -
@aaraney
Copy link
Member Author

aaraney commented Jun 13, 2024

Potentially related to #651.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant