Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sab_pyhsmm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Sebastian Bruijns
sab_pyhsmm
Commits
9e078fc5
Commit
9e078fc5
authored
4 years ago
by
Scott Linderman
Browse files
Options
Downloads
Patches
Plain Diff
Updating setup.py to use Python3 requests and fixing broken Eigen link.
parent
55ac07c4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+6
-4
6 additions, 4 deletions
setup.py
with
6 additions
and
4 deletions
setup.py
+
6
−
4
View file @
9e078fc5
...
...
@@ -8,12 +8,12 @@ from warnings import warn
import
os
import
sys
from
glob
import
glob
import
requests
import
tarfile
import
shutil
from
future.standard_library
import
install_aliases
install_aliases
()
from
urllib.request
import
urlretrieve
# use cython if we can import it successfully
try
:
...
...
@@ -68,15 +68,17 @@ if not os.path.exists('deps'):
os
.
mkdir
(
'
deps
'
)
# download Eigen if we don't have it in deps
eigenurl
=
'
http://
b
it
bucket.org/
eigen/eigen/
get/3.2.6
.tar.gz
'
eigenurl
=
'
http
s
://
g
it
lab.com/lib
eigen/eigen/
-/archive/3.3.7/eigen-3.3.7
.tar.gz
'
eigentarpath
=
os
.
path
.
join
(
'
deps
'
,
'
Eigen.tar.gz
'
)
eigenpath
=
os
.
path
.
join
(
'
deps
'
,
'
Eigen
'
)
if
not
os
.
path
.
exists
(
eigenpath
):
print
(
'
Downloading Eigen...
'
)
urlretrieve
(
eigenurl
,
eigentarpath
)
r
=
requests
.
get
(
eigenurl
)
with
open
(
eigentarpath
,
'
wb
'
)
as
f
:
f
.
write
(
r
.
content
)
with
tarfile
.
open
(
eigentarpath
,
'
r
'
)
as
tar
:
tar
.
extractall
(
'
deps
'
)
thedir
=
glob
(
os
.
path
.
join
(
'
deps
'
,
'
eigen-
eigen-
*
'
))[
0
]
thedir
=
glob
(
os
.
path
.
join
(
'
deps
'
,
'
eigen-*
'
))[
0
]
shutil
.
move
(
os
.
path
.
join
(
thedir
,
'
Eigen
'
),
eigenpath
)
print
(
'
...done!
'
)
...
...
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