Skip to content

Commit

Permalink
With guaranteed correct setuptools, can remove the fix for pypa/pip/i…
Browse files Browse the repository at this point in the history
…ssues/7953. Only need to sys.path modification to get version
  • Loading branch information
neilflood committed May 27, 2024
1 parent ab70511 commit de47cd6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@
import os
from setuptools import setup
import glob
# Only need these for the site.ENABLE_USER_SITE further down
import site
import sys

import rios


# This next line is to get around https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
# When run via pyproject.toml, we seem unable to import our own package.
# To get around this, we need to add to the path. I have no idea why,
# but this seems to work fine.
sys.path.insert(0, '')
import rios # noqa: E402

# Are we installing the command line scripts?
# this is an experimental option for users who are
Expand Down

0 comments on commit de47cd6

Please sign in to comment.