Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
da71d55d
Commit
da71d55d
authored
Feb 15, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include static assets in package
parent
13a72f74
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
setup.py
+18
-1
No files found.
setup.py
View file @
da71d55d
...
@@ -23,9 +23,22 @@
...
@@ -23,9 +23,22 @@
# Imports ###########################################################
# Imports ###########################################################
import
os
from
setuptools
import
setup
from
setuptools
import
setup
# Functions #########################################################
def
package_data
(
pkg
,
root
):
"""Generic function to find package_data for `pkg` under `root`."""
data
=
[]
for
dirname
,
_
,
files
in
os
.
walk
(
os
.
path
.
join
(
pkg
,
root
)):
for
fname
in
files
:
data
.
append
(
os
.
path
.
relpath
(
os
.
path
.
join
(
dirname
,
fname
),
pkg
))
return
{
pkg
:
data
}
# Main ##############################################################
# Main ##############################################################
BLOCKS
=
[
BLOCKS
=
[
...
@@ -46,7 +59,11 @@ setup(
...
@@ -46,7 +59,11 @@ setup(
version
=
'0.1'
,
version
=
'0.1'
,
description
=
'XBlock - Mentoring'
,
description
=
'XBlock - Mentoring'
,
packages
=
[
'mentoring'
],
packages
=
[
'mentoring'
],
install_requires
=
[
'XBlock'
,
],
entry_points
=
{
entry_points
=
{
'xblock.v1'
:
BLOCKS
,
'xblock.v1'
:
BLOCKS
,
}
},
package_data
=
package_data
(
"mentoring"
,
"static"
),
)
)
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