Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311415
pyutils.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
730 B
Subscribers
None
pyutils.sh
View Options
#!/bin/bash
setup_pip
()
{
echo
Using
pip
from
$(
which
pip
)
if
[[
-d
/src
]]
;
then
tmpdir
=
`
mktemp
-d
`
pushd
/src
for
srcrepo
in
swh-*
;
do
if
[
-w
$srcrepo
]
then
# Install package in editable mode if source directory is writable
pip
install
-e
$srcrepo
else
# Source directories might not be writeable, but building them writes
# in-tree; so we're copying them to a location guaranteed to be writeable.
rsync
-a
--chmod
=
+w
$srcrepo
$tmpdir
/
--exclude
"*/__pycache__/"
--exclude
"*/.tox/"
--exclude
"*/.hypothesis/"
pip
install
$tmpdir
/
$srcrepo
fi
done
popd
rm
-rf
$tmpdir
fi
echo
Installed
Python
packages:
pip
list
}
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Thu, Jul 3, 10:15 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241481
Attached To
rDPROV Provenance database
Event Timeline
Log In to Comment