@@ -574,6 +574,34 @@ def packages(self):
574574 c .run ("workspace build" )
575575 assert "conanfile.py (pkga/0.1): Building pkga AND 0.1!!!" in c .out
576576
577+ def test_build_with_external_editable_python_requires (self ):
578+ c = TestClient (light = True )
579+ c .save ({"conanws.yml" : "" ,
580+ "ext/conanfile.py" : GenConanfile ("ext" , "0.1" ).with_package_type ("python-require" ),
581+ "pkga/conanfile.py" : GenConanfile ("pkga" , "0.1" ).with_python_requires ("ext/0.1" )
582+ })
583+ c .run ("editable add ext" )
584+ c .run ("workspace add pkga" )
585+ c .run ("workspace build" )
586+ c .assert_listed_binary ({"pkga/0.1" : ("8bca2eae7cd0d6b6da8d14f8c86069d89d265bd4" ,
587+ "EditableBuild" )})
588+ c .assert_listed_require ({"ext/0.1" : "Editable" }, python = True )
589+
590+ def test_build_with_external_editable (self ):
591+ c = TestClient (light = True )
592+ c .save ({"conanws.yml" : "" ,
593+ "ext/conanfile.py" : GenConanfile ("ext" , "0.1" ).with_build_msg ("BUILD EXT!" ),
594+ "pkga/conanfile.py" : GenConanfile ("pkga" , "0.1" ).with_requires ("ext/0.1" )
595+ })
596+ c .run ("editable add ext" )
597+ c .run ("workspace add pkga" )
598+ c .run ("workspace build" )
599+ assert "ext/0.1: WARN: BUILD EXT!" in c .out
600+ c .assert_listed_binary ({"pkga/0.1" : ("38f8a554b1b3c2cbb44321f0e731b3863359126c" ,
601+ "EditableBuild" ),
602+ "ext/0.1" : ("da39a3ee5e6b4b0d3255bfef95601890afd80709" ,
603+ "EditableBuild" )})
604+
577605
578606class TestNew :
579607 def test_new (self ):
0 commit comments