def duplicate(self):
return PackageVersion(<EOL>name=self.name,<EOL>version=copy(self.version),<EOL>develop=self.develop,<EOL>index=self.index,<EOL>hashes=self.hashes,<EOL>markers=self.markers,<EOL>)<EOL>
Duplicate the given package safely when performing changes in resolution.