Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
55054714
Commit
55054714
authored
Jul 20, 2021
by
Franco Pellegrini
Committed by
Godefroid Chapelle
Nov 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to run buildout in FIPS enabled environments
parent
02ba9731
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
news/570.feature
news/570.feature
+1
-0
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+10
-2
No files found.
news/570.feature
0 → 100644
View file @
55054714
Allow
to
run
buildout
in
FIPS
enabled
environments.
src/zc/buildout/buildout.py
View file @
55054714
...
@@ -17,10 +17,12 @@
...
@@ -17,10 +17,12 @@
from
zc.buildout.rmtree
import
rmtree
from
zc.buildout.rmtree
import
rmtree
import
zc.buildout.easy_install
import
zc.buildout.easy_install
from
functools
import
partial
try
:
try
:
from
hashlib
import
md5
from
hashlib
import
md5
as
md5_original
except
ImportError
:
except
ImportError
:
from
md5
import
md5
from
md5
import
md5
as
md5_original
try
:
try
:
from
collections.abc
import
MutableMapping
as
DictMixin
from
collections.abc
import
MutableMapping
as
DictMixin
...
@@ -52,6 +54,12 @@ if PY3:
...
@@ -52,6 +54,12 @@ if PY3:
else
:
else
:
text_type
=
unicode
text_type
=
unicode
try
:
hashed
=
md5_original
(
b'test'
)
md5
=
md5_original
except
ValueError
:
md5
=
partial
(
md5_original
,
usedforsecurity
=
False
)
def
command
(
method
):
def
command
(
method
):
method
.
buildout_command
=
True
method
.
buildout_command
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment