Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
c8d2814d
Commit
c8d2814d
authored
11 years ago
by
Donald Stufft
Browse files
Options
Downloads
Patches
Plain Diff
Use the generated include files
parent
7c0edf75
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+13
-1
13 additions, 1 deletion
setup.py
with
13 additions
and
1 deletion
setup.py
+
13
−
1
View file @
c8d2814d
...
@@ -20,6 +20,7 @@ import subprocess
...
@@ -20,6 +20,7 @@ import subprocess
import
sys
import
sys
from
distutils.command.build_clib
import
build_clib
as
_build_clib
from
distutils.command.build_clib
import
build_clib
as
_build_clib
from
distutils.command.build_ext
import
build_ext
as
_build_ext
from
setuptools
import
Distribution
,
setup
from
setuptools
import
Distribution
,
setup
...
@@ -64,7 +65,6 @@ except ImportError:
...
@@ -64,7 +65,6 @@ except ImportError:
else
:
else
:
# building bdist - cffi is here!
# building bdist - cffi is here!
ext_modules
=
[
nacl
.
nacl
.
ffi
.
verifier
.
get_extension
()]
ext_modules
=
[
nacl
.
nacl
.
ffi
.
verifier
.
get_extension
()]
ext_modules
[
0
].
include_dirs
.
append
(
sodium
(
"
include
"
))
class
Distribution
(
Distribution
):
class
Distribution
(
Distribution
):
...
@@ -122,6 +122,17 @@ class build_clib(_build_clib):
...
@@ -122,6 +122,17 @@ class build_clib(_build_clib):
)
)
class
build_ext
(
_build_ext
):
def
run
(
self
):
build_clib
=
self
.
get_finalized_command
(
"
build_clib
"
)
self
.
include_dirs
.
append
(
os
.
path
.
join
(
build_clib
.
build_clib
,
"
include
"
)
)
return
_build_ext
.
run
(
self
)
setup
(
setup
(
name
=
nacl
.
__title__
,
name
=
nacl
.
__title__
,
version
=
nacl
.
__version__
,
version
=
nacl
.
__version__
,
...
@@ -156,6 +167,7 @@ setup(
...
@@ -156,6 +167,7 @@ setup(
cmdclass
=
{
cmdclass
=
{
"
build_clib
"
:
build_clib
,
"
build_clib
"
:
build_clib
,
"
build_ext
"
:
build_ext
,
},
},
distclass
=
Distribution
,
distclass
=
Distribution
,
zip_safe
=
False
,
zip_safe
=
False
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment