Commit eb4b4abe authored by Romain Casati's avatar Romain Casati
Browse files

Automatic detection of new custom Basthon packages (reduced to one entry point: basthon.js).

parent 83d634bc
build:
cd ../src/turtle/ ; make build ; cd -
cd ../src/requests/ ; make build ; cd -
cd ../src/proj4py/ ; make build ; cd -
cd ../src/graphviz/ ; make build ; cd -
cd ../src/IPython/ ; make build ; cd -
for d in $$(find ../src/ -mindepth 1 -maxdepth 1 -type d); do cd $$d ; make build ; cd - ; done
python3 setup.py sdist bdist_wheel
publish:
python3 -m twine upload dist/*
clean:
cd ../src/turtle/ ; make clean ; cd -
cd ../src/requests/ ; make clean ; cd -
cd ../src/proj4py/ ; make clean ; cd -
cd ../src/graphviz/ ; make clean ; cd -
cd ../src/IPython/ ; make clean ; cd -
for d in $$(find ../src/ -mindepth 1 -maxdepth 1 -type d); do cd $$d ; make clean ; cd - ; done
rm -rf basthon_kernel.egg-info/ basthon-kernel/data/* build/ dist/
.PHONY: publish build clean
......@@ -20,17 +20,16 @@ if command == "sdist":
data_dir = os.path.join(basthon_dir, "data")
# copy files from basthon into data_dir
for fname in [
"basthon.js", "basthon.min.js",
"basthon.py.js",
"basthon_goodies.js", "basthon_goodies.min.js",
"turtle/dist/turtle-0.0.1-py3-none-any.whl",
"requests/dist/requests-0.0.1-py3-none-any.whl",
"proj4py/dist/proj4py-0.0.1-py3-none-any.whl",
"graphviz/dist/graphviz-0.0.1-py3-none-any.whl",
"IPython/dist/IPython-0.0.1-py3-none-any.whl",
]:
shutil.copyfile(os.path.join(src_dir, fname),
content = []
for root, dirs, files in os.walk(src_dir):
if root == src_dir:
content += [os.path.join(root, f)
for f in files if os.path.splitext(f)[1] == '.js']
else:
content += [os.path.join(root, f)
for f in files if os.path.splitext(f)[1] == '.whl']
for fname in content:
shutil.copyfile(fname,
os.path.join(data_dir, os.path.basename(fname)))
setup(
......
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