-
Notifications
You must be signed in to change notification settings - Fork 232
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
Fix local build and install #620
Closed
Closed
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3c72594
set zip_safe false for native namespace package build
souljang 3d282c2
fix and change the default build mode for shifter_modules build
souljang 4d1a435
Merge branch 'develop' into local_build
mdazam1942 a9eac38
Merge branch 'develop' into local_build
mdazam1942 de9b15c
Merge branch 'develop' into local_build
mdazam1942 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should not change the default packaging mode, why are you using mode 3 at all? maybe mode 1 will fit you better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Changing the default mode might be too much depending on the workflow. For the distribution purpose for developers (
python setup.py bdist_wheel
), it would be good to have separate packages.But, for local build/install for users (
python setup.py install
), mode 3 or 1 is needed as the installed packages undersite-packages
will have the mix ofegg
zipfiles and directories for each stix_shifter_module, which will cause importing errors. For example, afterpython setup.py install
(with modeN
), importing qradar module (import stix_shifter_modules.qradar
) from outside of the stix-shifter root directory will causeModuleNotFoundError
due to above issues.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, MODE 1/3 bdist/install fails due to incorrect path resolution for stix_shifter_modules. Proper
fill_connectors
is needed to support MODE 1/3.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdazam1942 is looking into it.