Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not build unless setup.py is top-level scope #2969

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Nov 7, 2020

I.e. put all file system altering operations under if __name__ == "__main__":

I.e. put all file system altering operations under `if __name__ == "__main__":`
Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

name=package_name,
version=version,
author='PyTorch Core Team',
author_email='soumith@pytorch.org',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated: @soumith do we want to change this e-mail to a default pytorch e-mail? PyTorch now uses packages@pytorch.org

@fmassa
Copy link
Member

fmassa commented Nov 9, 2020

Lint failures are unrelated

@fmassa fmassa merged commit 2b39f1e into master Nov 9, 2020
@fmassa fmassa deleted the malfet/modernize-setup.py branch November 9, 2020 09:52
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
I.e. put all file system altering operations under `if __name__ == "__main__":`
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
I.e. put all file system altering operations under `if __name__ == "__main__":`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants