Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
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
olapy
Commits
892e6892
Commit
892e6892
authored
Apr 20, 2017
by
Mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
olapy-data creation
parent
dc2848f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
setup.py
setup.py
+25
-3
No files found.
setup.py
View file @
892e6892
# -*- coding: utf-8 -*-
from
__future__
import
absolute_import
,
division
,
print_function
import
pip
import
os
import
zipfile
from
os.path
import
expanduser
from
pip.download
import
PipSession
from
pip.req
import
parse_requirements
from
setuptools
import
find_packages
,
setup
session
=
pip
.
download
.
PipSession
()
_install_requires
=
pip
.
req
.
parse_requirements
(
RUNNING_TOX
=
'RUNTING_TOX'
in
os
.
environ
session
=
PipSession
()
_install_requires
=
parse_requirements
(
'requirements.txt'
,
session
=
session
)
install_requires
=
[
str
(
ir
.
req
)
for
ir
in
_install_requires
]
...
...
@@ -29,3 +36,18 @@ setup(
"Programming Language :: Python :: 2.7"
,
# "Topic :: Business intelligence",
],)
# initiate cubes examples
if
RUNNING_TOX
:
home_directory
=
os
.
environ
.
get
(
'HOME_DIR'
)
else
:
home_directory
=
expanduser
(
"~"
)
if
not
os
.
path
.
isdir
(
os
.
path
.
join
(
home_directory
,
'olapy-data'
,
'cubes'
)):
try
:
os
.
makedirs
(
os
.
path
.
join
(
home_directory
,
'olapy-data'
,
'cubes'
))
zip_ref
=
zipfile
.
ZipFile
(
'cubes_templates/cubes_temp.zip'
,
'r'
)
zip_ref
.
extractall
(
os
.
path
.
join
(
home_directory
,
'olapy-data'
,
'cubes'
))
zip_ref
.
close
()
except
:
raise
(
'unable to create cubes directory !'
)
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