Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
1edd380c
Commit
1edd380c
authored
Feb 27, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace makefile with pavement file, granting portability on OS X and Windows. Fixes #505.
parent
52cd445e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
Makefile
Makefile
+0
-11
pavement.py
pavement.py
+28
-0
No files found.
Makefile
deleted
100644 → 0
View file @
52cd445e
empty
:
exit
1
update-vendored
:
rm
-rf
pkg_resources/_vendor/packaging
*
rm
-rf
pkg_resources/_vendor/six
*
rm
-rf
pkg_resources/_vendor/pyparsing
*
python3
-m
pip
install
-r
pkg_resources/_vendor/vendored.txt
-t
pkg_resources/_vendor/
sed
-i
's/ \(pyparsing\|six\)/ pkg_resources.extern.\1/'
\
pkg_resources/_vendor/packaging/
*
.py
rm
-rf
pkg_resources/_vendor/
*
.
{
egg,dist
}
-info
pavement.py
0 → 100644
View file @
1edd380c
import
re
from
paver.easy
import
task
,
path
as
Path
import
pip
def
remove_all
(
paths
):
for
path
in
paths
:
path
.
rmtree
()
if
path
.
isdir
()
else
path
.
remove
()
@
task
def
update_vendored
():
vendor
=
Path
(
'pkg_resources/_vendor'
)
remove_all
(
vendor
.
glob
(
'packaging*'
))
remove_all
(
vendor
.
glob
(
'six*'
))
remove_all
(
vendor
.
glob
(
'pyparsing*'
))
install_args
=
[
'install'
,
'-r'
,
str
(
vendor
/
'vendored.txt'
),
'-t'
,
str
(
vendor
),
]
pip
.
main
(
install_args
)
packaging
=
vendor
/
'packaging'
for
file
in
packaging
.
glob
(
'*.py'
):
text
=
file
.
text
()
text
=
re
.
sub
(
r' (pyparsing|six)'
,
r' pkg_resources.extern.\1'
,
text
)
file
.
write_text
(
text
)
remove_all
(
vendor
.
glob
(
'*.dist-info'
))
remove_all
(
vendor
.
glob
(
'*.egg-info'
))
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