chamikaramj commented on code in PR #38348:
URL: https://github.com/apache/beam/pull/38348#discussion_r3191453357


##########
sdks/python/apache_beam/runners/portability/stager.py:
##########
@@ -701,14 +701,29 @@ def _remove_dependency_from_requirements(
     return tmp_requirements_filename
 
   @staticmethod
-  def _extract_local_packages(requirements_file):
+  def _extract_local_packages(requirements_file, temp_dir):
     local_deps = []
     pypi_deps = []
     with open(requirements_file, 'r') as fin:
+      staging_temp_dir = tempfile.mkdtemp(dir=temp_dir)
       for line in fin:
         dep = line.strip()
         if os.path.exists(dep):
           local_deps.append(dep)
+        elif urlparse(dep).scheme:
+          last_component = dep.rsplit('/', 1)[-1]

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to