silly-queen-7197
02/13/2023, 11:41 PMMakefile
that checks UNAME
and installs either tensorflow
or tensorflow-macos
into our venv
. This isn’t an ideal situation but some of the engineers laptops are M1s while others aren't. I'd like to be able to run something like ./pants test ::
and have the right dependency determined automaticallyenough-analyst-54434
02/14/2023, 12:02 AMsilly-queen-7197
02/14/2023, 12:03 AMenough-analyst-54434
02/14/2023, 12:04 AMsilly-queen-7197
02/14/2023, 1:08 AM"tensorflow-macos": ["tensorflow"]
in module_mapping
and when I include just tensorflow-macos~=2.11.0;platform_machine=='arm64'
things work as expected. However if I have both
tensorflow~=2.11.0;platform_machine=='x86_64'
tensorflow-macos~=2.11.0;platform_machine=='arm64'
I see ModuleNotFoundError: No module named 'tensorflow'
enough-analyst-54434
02/14/2023, 1:42 AMpython_requirement
target and remove them from the requirements file: https://www.pantsbuild.org/docs/reference-python_requirementcurved-television-6568
02/14/2023, 1:57 AM