File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ def get_version():
1111 return pyproject ["project" ]["version" ]
1212
1313VERSION = get_version ()
14+ PACKAGE_NAME = "c2pa-python" # Define package name as a constant
1415
1516# Define platform to library extension mapping (for reference only)
1617PLATFORM_EXTENSIONS = {
@@ -155,7 +156,7 @@ def find_available_platforms():
155156 if not available_platforms :
156157 print ("No platform-specific libraries found. Building wheel without platform-specific libraries." )
157158 setup (
158- name = "c2pa-python" ,
159+ name = PACKAGE_NAME ,
159160 version = VERSION ,
160161 package_dir = {"" : "src" },
161162 packages = find_namespace_packages (where = "src" ),
@@ -184,7 +185,7 @@ def find_available_platforms():
184185
185186 # Build the wheel
186187 setup (
187- name = "c2pa-python" ,
188+ name = PACKAGE_NAME ,
188189 version = VERSION ,
189190 package_dir = {"" : "src" },
190191 packages = find_namespace_packages (where = "src" ),
@@ -209,7 +210,7 @@ def find_available_platforms():
209210
210211# For sdist and development installation
211212setup (
212- name = "c2pa-python" ,
213+ name = PACKAGE_NAME ,
213214 version = VERSION ,
214215 package_dir = {"" : "src" },
215216 packages = find_namespace_packages (where = "src" ),
You can’t perform that action at this time.
0 commit comments