Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy cwl adapters to the wheel #259

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import shutil
from pathlib import Path
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py as _build_py
import versioneer

class build_py(_build_py):
def run(self):
# Copy cwl adapters to the package directory
target_dir = Path(self.build_lib) / 'sophios/cwl_adapters'
adapters_dir = Path(__file__).parent / 'cwl_adapters'
shutil.copytree(adapters_dir, target_dir, dirs_exist_ok=True)

# Continue with the standard build process
super().run()

setup(
name="sophios",
version=versioneer.get_version(),
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
cmdclass={'build_py': build_py},
package_data={
"sophios": ["cwl_adapters/*.cwl"],
},
)
Loading