[go: up one dir, main page]

Skip to content

Commit

Permalink
fix install in conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
daisycx committed Jun 29, 2022
1 parent 811ee01 commit 5b20f39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mgeconvert/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)


Expand Down

0 comments on commit 5b20f39

Please sign in to comment.