Skip to content

Commit

Permalink
move setup.py import
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlerer committed Oct 15, 2021
1 parent 029eec5 commit 7cf6c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
import os

from setuptools import setup
from torch.utils import cpp_extension


if __name__ == "__main__":
if int(os.getenv("PBG_INSTALL_CPP", 0)) == 0:
setup()
else:
from torch.utils import cpp_extension
setup(
ext_modules=[
cpp_extension.CppExtension(
Expand Down

0 comments on commit 7cf6c4f

Please sign in to comment.