Skip to content

Commit

Permalink
Merge pull request #171 from reaperhulk/fix-paths
Browse files Browse the repository at this point in the history
fix absolute paths in the SOURCES.txt when generating an sdist
  • Loading branch information
dstufft committed Jan 24, 2016
2 parents a811247 + c58be49 commit 9565967
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,17 @@


def here(*paths):
return os.path.abspath(os.path.join(os.path.dirname(__file__), *paths))
return os.path.relpath(os.path.join(*paths))


def abshere(*paths):
return os.path.abspath(here(*paths))


sodium = functools.partial(here, "src/libsodium/src/libsodium")


sys.path.insert(0, here("src"))
sys.path.insert(0, abshere("src"))


import nacl # flake8: noqa
Expand Down Expand Up @@ -169,7 +174,7 @@ def run(self):
os.chmod(here(filename), 0o755)

# Locate our configure script
configure = here("src/libsodium/configure")
configure = abshere("src/libsodium/configure")

# Run ./configure
subprocess.check_call(
Expand Down

0 comments on commit 9565967

Please sign in to comment.