Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
ac1f46f5
Commit
ac1f46f5
authored
Apr 13, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make setup.py work when invoked from a different path.
parent
a2f7c7ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
setup.py
setup.py
+4
-2
No files found.
setup.py
View file @
ac1f46f5
...
@@ -33,8 +33,10 @@ DEPS = {
...
@@ -33,8 +33,10 @@ DEPS = {
),
),
}
}
_file_dirname
=
os
.
path
.
dirname
(
__file__
)
def
download
(
url
,
filename
,
hexdigest
):
def
download
(
url
,
filename
,
hexdigest
):
filename
=
join
(
'apachedex'
,
filename
)
filename
=
join
(
_file_dirname
,
'apachedex'
,
filename
)
if
not
exists
(
filename
):
if
not
exists
(
filename
):
urllib
.
urlretrieve
(
url
,
filename
)
urllib
.
urlretrieve
(
url
,
filename
)
if
hashlib
.
md5
(
open
(
filename
).
read
()).
hexdigest
()
!=
hexdigest
:
if
hashlib
.
md5
(
open
(
filename
).
read
()).
hexdigest
()
!=
hexdigest
:
...
@@ -47,7 +49,7 @@ for filename, (url, hexdigest) in DEPS.items():
...
@@ -47,7 +49,7 @@ for filename, (url, hexdigest) in DEPS.items():
if
sys
.
argv
[
1
:]
==
[
'deps'
]:
if
sys
.
argv
[
1
:]
==
[
'deps'
]:
sys
.
exit
(
0
)
sys
.
exit
(
0
)
description
=
open
(
'README'
).
read
()
description
=
open
(
join
(
_file_dirname
,
'README'
)
).
read
()
setup
(
setup
(
name
=
'APacheDEX'
,
name
=
'APacheDEX'
,
...
...
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