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
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
c948bb2b
Commit
c948bb2b
authored
10 years ago
by
Alex Gaynor
Browse files
Options
Downloads
Patches
Plain Diff
Removed cffi_fix, the fix is upstream
parent
ad72690a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
setup.py
+3
-2
3 additions, 2 deletions
setup.py
src/nacl/_cffi_fix.py
+0
-75
0 additions, 75 deletions
src/nacl/_cffi_fix.py
src/nacl/_lib/__init__.py
+0
-4
0 additions, 4 deletions
src/nacl/_lib/__init__.py
with
3 additions
and
81 deletions
setup.py
+
3
−
2
View file @
c948bb2b
...
...
@@ -214,10 +214,10 @@ setup(
author_email
=
nacl
.
__email__
,
setup_requires
=
[
"
cffi
"
,
"
cffi
>=0.8
"
,
],
install_requires
=
[
"
cffi
"
,
"
cffi
>=0.8
"
,
"
six
"
,
],
extras_require
=
{
...
...
@@ -252,5 +252,6 @@ setup(
"
Programming Language :: Python :: 3
"
,
"
Programming Language :: Python :: 3.2
"
,
"
Programming Language :: Python :: 3.3
"
,
"
Programming Language :: Python :: 3.4
"
,
]
)
This diff is collapsed.
Click to expand it.
src/nacl/_cffi_fix.py
deleted
100644 → 0
+
0
−
75
View file @
ad72690a
# Copyright 2013 Donald Stufft and individual contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
imp
import
os.path
import
sys
import
cffi.vengine_cpy
import
cffi.vengine_gen
def
_get_so_suffixes
():
suffixes
=
[]
for
suffix
,
mode
,
type
in
imp
.
get_suffixes
():
if
type
==
imp
.
C_EXTENSION
:
suffixes
.
append
(
suffix
)
if
not
suffixes
:
# bah, no C_EXTENSION available. Occurs on pypy without cpyext
if
sys
.
platform
==
'
win32
'
:
suffixes
=
[
"
.pyd
"
]
else
:
suffixes
=
[
"
.so
"
]
return
suffixes
def
vengine_cpy_find_module
(
self
,
module_name
,
path
,
so_suffix
):
# We will ignore so_suffix and get it ourselves
so_suffixes
=
_get_so_suffixes
()
try
:
f
,
filename
,
descr
=
imp
.
find_module
(
module_name
,
path
)
except
ImportError
:
return
None
if
f
is
not
None
:
f
.
close
()
# Note that after a setuptools installation, there are both .py
# and .so files with the same basename. The code here relies on
# imp.find_module() locating the .so in priority.
if
descr
[
0
]
not
in
so_suffixes
:
return
None
return
filename
def
vengine_gen_find_module
(
self
,
module_name
,
path
,
so_suffixes
):
# We will ignore so_suffix and get it ourselves
so_suffixes
=
_get_so_suffixes
()
for
so_suffix
in
so_suffixes
:
basename
=
module_name
+
so_suffix
if
path
is
None
:
path
=
sys
.
path
for
dirname
in
path
:
filename
=
os
.
path
.
join
(
dirname
,
basename
)
if
os
.
path
.
isfile
(
filename
):
return
filename
cffi
.
vengine_cpy
.
VCPythonEngine
.
find_module
=
vengine_cpy_find_module
cffi
.
vengine_gen
.
VGenericEngine
.
find_module
=
vengine_gen_find_module
This diff is collapsed.
Click to expand it.
src/nacl/_lib/__init__.py
+
0
−
4
View file @
c948bb2b
...
...
@@ -16,10 +16,6 @@ from __future__ import absolute_import, division, print_function
import
glob
import
os.path
# We need to import this prior to importing cffi to fix prebuilding the
# extension modules
from
nacl
import
_cffi_fix
# noqa
from
cffi
import
FFI
from
cffi.verifier
import
Verifier
...
...
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