20 lines
552 B
Python
20 lines
552 B
Python
import os
|
|
import shutil
|
|
from setuptools import setup
|
|
|
|
pkg_dir = os.path.join(os.path.dirname(__file__), "clyx")
|
|
parent_dir = os.path.join(os.path.dirname(__file__), "..")
|
|
|
|
for fname in ["lib.clx", "clyx_repl.clx"]:
|
|
src = os.path.join(parent_dir, fname)
|
|
dst = os.path.join(pkg_dir, fname)
|
|
if os.path.exists(src):
|
|
shutil.copy(src, dst)
|
|
|
|
readme_src = os.path.join(parent_dir, "README.md")
|
|
readme_dst = os.path.join(os.path.dirname(__file__), "README.md")
|
|
if os.path.exists(readme_src):
|
|
shutil.copy(readme_src, readme_dst)
|
|
|
|
setup()
|