Commit da71d55d by Xavier Antoviaque

Include static assets in package

parent 13a72f74
......@@ -23,9 +23,22 @@
# Imports ###########################################################
import os
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 ##############################################################
BLOCKS = [
......@@ -46,7 +59,11 @@ setup(
version='0.1',
description='XBlock - Mentoring',
packages=['mentoring'],
install_requires=[
'XBlock',
],
entry_points={
'xblock.v1': BLOCKS,
}
},
package_data=package_data("mentoring", "static"),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment