File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed
Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 11import os
2+ from pathlib import Path
23import sys
34
45from setuptools import setup
56
67# ensure the current directory is on sys.path so versioneer can be imported
78# when pip uses PEP 517/518 build rules.
89# https://github.com/python-versioneer/python-versioneer/issues/193
9- sys .path .append (os .path .dirname (__file__ ))
1010
11+
12+ sys .path .append (str (Path (__file__ ).parent ))
1113import versioneer # noqa: E402
12- from snakemake .assets import Assets
14+
15+ # import Assets, while avoiding that the rest of snakemake is imported here before
16+ # setup has been called.
17+ sys .path .append (str (Path (__file__ ).parent / "snakemake" ))
18+ from assets import Assets
1319
1420# download online assets
1521Assets .deploy ()
Original file line number Diff line number Diff line change 44__license__ = "MIT"
55
66import sys
7- from snakemake .common import __version__ , PIP_DEPLOYMENTS_PATH
7+
8+ from snakemake ._version import get_versions
9+
10+ __version__ = get_versions ()["version" ]
11+ del get_versions
12+
13+ PIP_DEPLOYMENTS_PATH = ".snakemake/pip-deployments"
814
915sys .path .append (PIP_DEPLOYMENTS_PATH )
1016
Original file line number Diff line number Diff line change 1717import collections
1818from pathlib import Path
1919
20- from snakemake ._version import get_versions
21-
20+ from snakemake import __version__
2221from snakemake_interface_common .exceptions import WorkflowError
2322
24- __version__ = get_versions ()["version" ]
25- del get_versions
26-
2723
2824MIN_PY_VERSION = (3 , 7 )
2925UUID_NAMESPACE = uuid .uuid5 (uuid .NAMESPACE_URL , "https://snakemake.readthedocs.io" )
4642 ),
4743 )
4844)
49- PIP_DEPLOYMENTS_PATH = ".snakemake/pip-deployments"
5045
5146
5247def get_snakemake_searchpaths ():
You can’t perform that action at this time.
0 commit comments