Skip to content
Snippets Groups Projects
Commit 55255e62 authored by Donald Stufft's avatar Donald Stufft
Browse files

Merge pull request #36 from dstufft/shuffle-directories

Move nacl into the src directory
parents 6df8048f 40e62a7e
No related branches found
No related tags found
No related merge requests found
...@@ -11,11 +11,6 @@ from distutils.command.build_clib import build_clib as _build_clib ...@@ -11,11 +11,6 @@ from distutils.command.build_clib import build_clib as _build_clib
from setuptools import setup from setuptools import setup
import nacl
SODIUM_VERSION = "0.4.3"
def here(*paths): def here(*paths):
return os.path.abspath(os.path.join(os.path.dirname(__file__), *paths)) return os.path.abspath(os.path.join(os.path.dirname(__file__), *paths))
...@@ -23,6 +18,15 @@ def here(*paths): ...@@ -23,6 +18,15 @@ def here(*paths):
sodium = functools.partial(here, "src/libsodium/src/libsodium") sodium = functools.partial(here, "src/libsodium/src/libsodium")
sys.path.append(here("src"))
import nacl
SODIUM_VERSION = "0.4.3"
def which(name, flags=os.X_OK): # Taken from twisted def which(name, flags=os.X_OK): # Taken from twisted
result = [] result = []
exts = filter(None, os.environ.get('PATHEXT', '').split(os.pathsep)) exts = filter(None, os.environ.get('PATHEXT', '').split(os.pathsep))
...@@ -173,6 +177,7 @@ setup( ...@@ -173,6 +177,7 @@ setup(
}, },
tests_require=["pytest"], tests_require=["pytest"],
package_dir={"": "src"},
packages=[ packages=[
"nacl", "nacl",
], ],
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment