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

build: reduce the use of sys.path.insert() in configure.py #25884

Closed
wants to merge 1 commit into from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Feb 2, 2019

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to build files or the CI. label Feb 2, 2019
@Trott Trott added the python PRs and issues that require attention from people who are familiar with Python. label Feb 2, 2019
@@ -24,21 +24,21 @@
CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'gcc')
CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'g++')

sys.path.insert(0, os.path.join('tools', 'gyp', 'pylib'))
from gyp.common import GetFlavor
# sys.path.insert(0, os.path.join('tools', 'gyp', 'pylib'))
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove this? Rule of thumb: don't leave in commented-out code.

Copy link
Contributor

@danbev danbev left a comment

Choose a reason for hiding this comment

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

I'm getting the following error locally (and on Travis):

$ ./configure && make -j8 test 2> warnings
Traceback (most recent call last):
  File "./configure", line 28, in <module>
    import configure
  File "/Users/danielbevenius/work/nodejs/node/configure.py", line 28, in <module>
    from node.tools.gyp.pylib.gyp.common import GetFlavor
ImportError: No module named node.tools.gyp.pylib.gyp.common

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. python PRs and issues that require attention from people who are familiar with Python.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants