Packages are not installed when requirements defined inside modules

Hi @eirannejad,

when I define the requirements inside a module that is loaded by a main entry file, the required packages do not get installed. The example below throws a module "firebase_admin" not found exception

To me it seems logical to keep the requirement statement #r: firebase_admin in the same file as the import statement. Otherwise all the files that import ‘my_firebase_module’ should contain the same requirement statement #r: firebase_admin, this may become difficult to manage for many scripts and many dependencies

Maybe I am not understanding the mechanism correctly, so I hope you can help clarify this

Thanks,
Tim

# main.py
from my_firebase_module import some_function

def main():
    some_function()

if __name__ == '__main__':
    main()
# my_firebase_module.py

"""Requirements"""
# r: firebase_admin

import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore

def some_function():
    # ...module functions go here
    print('execute some function')