diff --git a/mgeconvert/version.py b/mgeconvert/version.py index 9d1d1ea..a47ad17 100644 --- a/mgeconvert/version.py +++ b/mgeconvert/version.py @@ -5,7 +5,7 @@ # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -__version__ = "1.0.0" +__version__ = "1.0.1" # required megengine version range MEGENGINE_LOWER = "1.0.0" diff --git a/setup.py b/setup.py index fa42781..7f866e3 100644 --- a/setup.py +++ b/setup.py @@ -15,8 +15,11 @@ targets = [] tfversion = None -IS_VENV = hasattr(sys, "real_prefix") or ( - hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix +IS_VENV = ( + hasattr(sys, "real_prefix") + or (hasattr(sys, "base_prefix") and sys.base_prefix != sys.prefix) + or os.path.exists(os.path.join(sys.prefix, "conda-meta")) + or (("Continuum Analytics" in sys.version) or ("Anaconda" in sys.version)) )