silly-queen-7197
02/15/2023, 7:50 PMtensorflow-ranking which has a dependency on tensforflow. On M1 laptops, engineers install tensforflow-macos not tensorflow. We get around this by pip installing it with --no-deps. I tried checking to see if I could specify that flag in requirements.txt and solve this outside of pants but haven't found anything. Is there a way I can add --no-deps to tensorflow-ranking in pants?enough-analyst-54434
02/15/2023, 7:56 PM--intransitive), but Pex, like Pants is global in that you cannot build up a venv piecemeal. You specify a complete venv all at once with both.enough-analyst-54434
02/15/2023, 7:59 PMtensorflow-macos exists. In any package ecosystem having the same symbol provided by two different package names is problematic. Here it's made worse by the fact that wheel tags and environment markers are already built to handle this.enough-analyst-54434
02/15/2023, 8:00 PMwitty-crayon-22786
02/15/2023, 8:00 PMenough-analyst-54434
02/15/2023, 8:00 PMwitty-crayon-22786
02/15/2023, 8:00 PMenough-analyst-54434
02/15/2023, 8:00 PMwitty-crayon-22786
02/15/2023, 8:01 PMsilly-queen-7197
02/15/2023, 8:03 PM"tensorflow-ranking": {
"dependencies": [
"//:reqs#tensorflow"
]
},
"tensorflow": {
"requirements": (
# Linux or intel Mac
"tensorflow ~= 2.11.0 ; sys_platform != 'darwin' or platform_machine == 'x86_64'",
# Mac M1
"tensorflow-macos ~= 2.11.0 ; sys_platform == 'darwin' and platform_machine == 'arm64'",
),
}
in a BUILD file right?enough-analyst-54434
02/15/2023, 8:03 PMenough-analyst-54434
02/15/2023, 8:03 PMsilly-queen-7197
02/15/2023, 8:04 PMenough-analyst-54434
02/15/2023, 8:04 PMenough-analyst-54434
02/15/2023, 8:07 PMenough-analyst-54434
02/15/2023, 8:08 PMenough-analyst-54434
02/15/2023, 8:08 PMsilly-queen-7197
02/15/2023, 8:09 PMsilly-queen-7197
02/15/2023, 8:09 PMenough-analyst-54434
02/15/2023, 8:09 PMcurved-television-6568
02/15/2023, 9:30 PMwitty-crayon-22786
02/15/2023, 9:32 PM