pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

pytorch3d 0.7.4 still leaks a `projects` module via pip install

Open igozali opened this issue 2 years ago • 0 comments

🐛 Bugs / Unexpected behaviors

Related to https://github.com/facebookresearch/pytorch3d/issues/1279.

The situation is slightly better now, but the package still leaks a projects/__init__.py file which would still cause clashes since our repo also has a top-level projects dir. Previously it had more files.

Instructions To Reproduce the Issue:

Please include the following (depending on what the issue is):

  1. The exact command(s) you ran: I was using a base conda environment that had torch, and the venv was created with --system-site-packages so I didn't have to install torch into the venv.
(venv) (base)
[10:36:12 | last: 0s] (  0) | ~
igozali@hostname $ pip install --force --no-deps "git+https://github.com/facebookresearch/[email protected]"

(venv) (base)
[10:38:00 | last: 0s] (  0) | ~/venv/lib/python3.8/site-packages
igozali@hostname $ ls
_distutils_hack  distutils-precedence.pth  pip  pip-22.0.4.dist-info  pkg_resources  projects  pytorch3d  pytorch3d-0.7.4.dist-info  setuptools  setuptools-56.0.0.dist-info

(venv) (base)
[10:38:00 | last: 0s] (  0) | ~/venv/lib/python3.8/site-packages
igozali@hostname $ ls projects
__init__.py  __pycache__

(venv) (base)
[10:38:07 | last: 0s] (  0) | ~/venv/lib/python3.8/site-packages
igozali@hostname $ cat projects/__init__.py
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

igozali avatar Jul 29 '23 17:07 igozali