-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Using component without formally installing via pip #132
Comments
There may be a way to make this work just by tweaking See for example dash-user-guide-components with their tarball that we install from requirements.txt (note that repo isn't used anymore for the docs but you get the idea) |
Thanks for the feedback! I can probably work with a tarball for now, but it would be great to get this working without that step. At this point, the issue is really my dev environment with Bazel, which will require something hacky to get it installed in the Bazel workflow. I was able to get the component to import, but it does not seem to pickup/register the resources. I tried a simple nested folder structure for testing.
I checked whether it was grabbing the scripts by doing something similar to below.
My understanding is that importing should be enough for Dash to know that the resource is needed. If I move Feel free to close out unless you think this could be a useful feature. |
Is it possible to incorporate a custom component without wrapping it into a formal Python package?
For context, we use Bazel for handling build dependencies and do not have formal pypi packages in our internal codebase, which is my reason for trying to avoid that step. The component works fine if I install, but is failing when I try to add the generated folder into my project.
I assume this may be related to the expected
package_name
when resolving resources (i.e._js_dist
) and the fact that the component folder is nested within the codebase. This could just be a Bazel problem, but wanted to check if I am missing anything or if pushing to pypi is my best option.The text was updated successfully, but these errors were encountered: